LVGL Font from Flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LVGL Font from Flash

695 Views
SpeedyGonzalesss
Contributor III

Hello,

I am using I.MX RT1170 and MCUXpresso IDE.

I want to use font and images files as .bin from QSPI Flash. Gui Guider program, with its LVGL library, allows the images used to be created as .bin and read from Flash. But I couldn't find any support about the font. How can I perform the same operations for the font?

For images;

Gui Guider

SpeedyGonzalesss_0-1704884499308.png

MCU Xpresso

SpeedyGonzalesss_1-1704884573034.png

 

0 Kudos
2 Replies

680 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

a). The current version does not support the input of such characters, we plan to support in March.

b). This is a workaround.

   1. Please design UI with English characters instead of Russian characters.

   2. To generated Russian characters by this link fontconverter.

Bio_TICFSL_0-1704898336382.png

 

 3. Use this fonts C file ("lv_font_Montserrat_SemiBold_19.c") to replace "test\generated\guider_fonts\lv_font_Montserrat_SemiBold_19.c"

   4. Modify the "test\generated\setup_scr_screen.c" like the sip

Bio_TICFSL_1-1704898336570.png

 

 5. Execute "make -r && make -r run" on this "test\lvgl-simulator" path. 

Bio_TICFSL_2-1704898336355.png

 

Regards

 

0 Kudos

675 Views
SpeedyGonzalesss
Contributor III
@Bio_TICFSL Thanks for answer. But i want to use .bin file not .c file. Because my goal is to separate code, images and font images and update only the relevant areas in software updates. Therefore, I must create a .bin for the font, write it to a specific address in flash, and use this font in text operations. LVGL's 'lv_font_conv' library provides conversion of the font to .bin format. What I need is to learn how the file converted to .bin is used in the code.
0 Kudos