Characters display bug v7.6(vs2019)


What MCU/Processor/Board and compiler are you using?


What do you experience?

Some characters cannot be displayed correctly with v7.6. But there is no problem with v7.01.



What do you expect?

I tried to compare the two versions of Lv_ draw_ The label. C file and trying to replace it will not fix the bug.

Code to reproduce

I used the same code to display “my试测测测测试” LV_SYMBOL_AUDIO

void my_lv_font(void)
	static lv_style_t style1;
	lv_obj_t* label1 = lv_label_create(lv_scr_act(), NULL);
	lv_obj_add_style(label1, LV_OBJ_PART_MAIN, &style1);
	lv_style_set_text_font(&style1, LV_STATE_DEFAULT, &my_font_CH);
	lv_obj_set_style_local_text_color(label1, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_RED);
	lv_label_set_text(label1, "my试测测测测试" LV_SYMBOL_AUDIO);

Screenshot and/or video

If possible, add screenshots and/or videos about the current issue.

You need to add the style after you change the font on it. Currently you’re adding the style first, which means that you’re not using your custom font.

Thanks, buddy. I got it.Now it’s all right. :cool: