Description
Trying to set two custom fonts as default
What MCU/Processor/Board and compiler are you using?
iMX6-Custom board-gcc for arm
What LVGL version are you using?
v7
What do you want to achieve?
See the new fonts
What have you tried so far?
I used the font online converter starting from WOFF files to get my c files.
I added my custom fonts in lv_conf.f:
#define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(grotesque_regular_16) \
LV_FONT_DECLARE(source_sans_pro_regular_16)
but nothing happened.
Probably I’m missing this instruction:
- Set the font in a style:
style.text.font = &my_font_name;
but my static lv_style_t style does not have any text.font, just a map field.
Thank you for your time