We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
先创建一个 widget_t* cont_obj = canvas_widget_create(page_main, 0, 50, 800, 300); 然后 widget_t* label = label_create(cont_obj, 10, 10, 300, 150); //创建位置(x,y)相对于cont_obj左上角 // label_resize_to_content(label, 10, 0xFFFF, 10, 0xFFFF); widget_set_style_int(label, "font_size", 150); widget_set_style_str(label, "text_color", "black"); widget_set_text(label, L"123"); 可以显示,但是使用 widget_t* label = label_create(cont_obj, 10, 10, 0, 0); label_resize_to_content(label, 10, 0xFFFF, 10, 0xFFFF); 就显示不了 ?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
需要指定控件宽度。
哦 好吧! 另外请问 程序使用 WITH_STB_FT 方式 字体解析后 对字 边缘平滑处理 是在哪处理的啊?
没有特殊处理啊
No branches or pull requests
先创建一个 widget_t* cont_obj = canvas_widget_create(page_main, 0, 50, 800, 300); 然后
widget_t* label = label_create(cont_obj, 10, 10, 300, 150); //创建位置(x,y)相对于cont_obj左上角
// label_resize_to_content(label, 10, 0xFFFF, 10, 0xFFFF);
widget_set_style_int(label, "font_size", 150);
widget_set_style_str(label, "text_color", "black");
widget_set_text(label, L"123");
可以显示,但是使用 widget_t* label = label_create(cont_obj, 10, 10, 0, 0);
label_resize_to_content(label, 10, 0xFFFF, 10, 0xFFFF); 就显示不了 ?
The text was updated successfully, but these errors were encountered: