Description
I have followed the instruction Fonts — LVGL documentation to add custom font awesome symbol to my app using lvgvl, I have not error but the icon is not rendered. I have tried many things but it does not work.
MCU/Processor/Board ? ESP32S3
What LVGL version are you using? 8.3.0
F1F4.cpp
I have created with font cons a class file with the additional symbol I wan to use:
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+F1F4 "" */
0x9f, 0xff, 0xf1, 0x23, 0x3, 0xff, 0x88, 0xc0,
0xff, 0xed, 0x10, 0x3f, 0x10, 0x3e, 0x91, 0xc0,
0xf5, 0x98, 0xb, 0x0, 0x20, 0xdb, 0x65, 0x58,
0x7f, 0x46, 0x1, 0xcc, 0xc9, 0x59, 0x44, 0x84,
0x80, 0x80, 0x84, 0x7b, 0x3c, 0x1c, 0x97, 0xb6,
0x0, 0x80, 0x12, 0x11, 0x2, 0x1, 0x13, 0x1,
0xff, 0xeb, 0x60, 0x7f, 0xf1, 0x18,
/* U+F1F5 "" */
0x7f, 0xff, 0xf1, 0x1c, 0x3, 0xff, 0x89, 0x0,
0xff, 0xe7, 0x90, 0x3f, 0xf8, 0x14, 0x9, 0xb0,
0x1f, 0xd3, 0x35, 0xa6, 0xc3, 0xb2, 0x89, 0x90,
0x6, 0x90, 0x62, 0x8f, 0x3d, 0xc7, 0x68, 0x6,
0x30, 0xb, 0x81, 0x10, 0x47, 0x60, 0x3a, 0xcb,
0x80, 0xe0, 0x38, 0xa9, 0x90, 0x1b, 0xbb, 0xeb,
0x68, 0x3e, 0x17, 0xd0, 0x3f, 0xec, 0x7, 0xff,
0x14, 0x81, 0xff, 0xcd, 0x60, 0x7f, 0xf1, 0x18,
/* U+F1FA "" */
0x3, 0x19, 0xbf, 0x68, 0x40, 0xfa, 0x66, 0x40,
0x17, 0xa0, 0x1d, 0x58, 0x7b, 0xf6, 0x61, 0xd0,
0x28, 0x8e, 0x84, 0x1, 0x98, 0xa8, 0xb, 0x1c,
0x95, 0xfd, 0x53, 0xe1, 0x9a, 0x19, 0x2c, 0x80,
0x2b, 0x45, 0x8a, 0x85, 0x10, 0x2f, 0xc8, 0xa,
0x84, 0x41, 0x8, 0x40, 0x10, 0x8, 0x82, 0x7,
0xff, 0x10, 0x82, 0x10, 0x80, 0x20, 0x2, 0x40,
0x10, 0xa2, 0x5, 0xf9, 0x0, 0xd8, 0x1d, 0xc,
0x96, 0x40, 0x16, 0x60, 0x1c, 0x2c, 0x62, 0x57,
0xf5, 0x33, 0xf4, 0x1, 0x10, 0xd0, 0x81, 0xff,
0x56, 0x1e, 0xf8, 0xf, 0xf4, 0xcc, 0x81, 0xfc,
Gui.cpp
LV_FONT_DECLARE(FA_BAND_F1F4) // MyCustom Font with additional symbols
extern lv_font_t fa_band_f1f4;
lv_obj_t * btn = lv_btn_create(scr);
lv_obj_t * label = lv_label_create(btn);
static lv_style_t style;
lv_style_init(&style);
lv_style_set_text_font(&style, &fa_band_f1f4);
lv_obj_add_style(label, &style, LV_PART_MAIN);
#define MY_F1F4_SYMBOL "\xEF\x87\xB4" // F1F4 EF 87 B4
lv_label_set_text(label, MY_F1F4_SYMBOL);
Noting is showing on the label, no error, nothing …
Any help would be really cool.
Thanks
Vincent