Use the generated icon font file to display blank

Description

The generated icon font c file is blank

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

lv_sim_vscode_sdl

What LVGL version are you using?

8.0

What do you want to achieve?

Use the generated icon font file to display white space. How to make it display icons

What have you tried so far?

I want to know if there is a problem with the file I generated

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

    LV_FONT_CUSTOM_DECLARE(lv_a);
    #define LV_MY_AAA  "\xee\xa4\x80"


    lv_obj_t * btn1=lv_btn_create(lv_scr_act());
    lv_obj_align(btn1,LV_ALIGN_CENTER,0,-10);
    lv_obj_t * lable1=lv_label_create(btn1);
    lv_obj_center(lable1);
    lv_label_set_text(lable1,LV_MY_AAA);
    lv_obj_set_style_text_font(lable1,&lv_font_montserrat_42,0);
    lv_obj_set_style_text_color(lable1,lv_palette_main(LV_PALETTE_BLUE),0);
    lv_obj_set_style_bg_opa(btn1,0,0);
    lv_obj_set_style_shadow_opa(btn1,0,0);

lv_a.c (5.7 KB)

Screenshot and/or video

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

@embeddedt @kisvegabor
Can give me some advice? Thank in advance

@embeddedt @kisvegabor
I have met the same problem,version 7.11 is OK,but use custom icon font would no display in version 8.3 ,which download from fontawesome.com.But the conversion of the font file downloaded from google is displayable

Instead of

you should set your font like this:

  lv_obj_set_style_text_font(lable1,&lv_a,0);

My mistake…