Visit this page and make a font file contain the character f012/LV_SYMBOL_SIGNAL : https://lvgl.io/tools/fontconverter
use this function to set a font for you label: lv_obj_set_style_local_text_font;
lv_obj_t* src = lv_disp_get_scr_act(NULL);
lv_obj_t* lable = lv_label_create(src, NULL);
lv_label_set_text(lable, “hello”);
lv_obj_align(lable, NULL,LV_ALIGN_CENTER,0,0);
lv_obj_set_style_local_bg_color(lable, LV_LABEL_PART_MAIN,LV_STATE_DEFAULT, LV_COLOR_RED);
here is my code.does not dislay red bg color as expected.
@jiamin If I understand that right, you want to set background of the label to red color, is that right? Does that label have any sort of shadow or something? If not, than bg color could not be visible because you will “cover” it with color (and space) of the label. I hope that make sense.