use roboto font
This commit is contained in:
committed by
Raphael Coeffic
parent
66c500799c
commit
f7c0d58281
+1
@@ -32,6 +32,7 @@ class StaticText: public Window
|
|||||||
label = lv_label_create(lvobj);
|
label = lv_label_create(lvobj);
|
||||||
lv_label_set_text(label, this->text.c_str());
|
lv_label_set_text(label, this->text.c_str());
|
||||||
|
|
||||||
|
lv_obj_set_style_text_font(lvobj, &lv_font_roboto_13, LV_PART_MAIN);
|
||||||
lv_obj_set_style_text_color(label, makeLvColor(textFlags), LV_PART_MAIN);
|
lv_obj_set_style_text_color(label, makeLvColor(textFlags), LV_PART_MAIN);
|
||||||
if (textFlags & CENTERED)
|
if (textFlags & CENTERED)
|
||||||
lv_obj_center(label);
|
lv_obj_center(label);
|
||||||
|
|||||||
Reference in New Issue
Block a user