-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lv_font_conv:Use the tool to generate Chinese font bin file,lv_font_load Failed to load bin file #99
Comments
Please attach the Which LVGL version do you use? |
Thank you for the response. font_realign.py:Used to generate bin files(ambiq_cour40_2unicode.bin) supported by ambiq |
The file upload wasn't successful. It seems you have pressed the "Comment" button too early.
It's pretty old. Could you try updating to v8.3.11 (latest from the |
@kisvegabor You can use the ttf file and bin file to reproduce errors in release/v9.0 branch |
I've tried it out and it works but it required 7.5MB of RAM. I suggest taking a look at TinyTTF to render directly from a TTF file. |
Having a similar issue, I was using --symbols to add the common CJK characters I needed, but when loading the font on the device, I encountered a memory allocation error when loading the CMAP table, the glyph_id_ofs_list pointer was null on load_cmaps_tables function. It seems that when using the --symbols parameter, the tool does not strictly check whether the glyph data of the corresponding characters in the ttf file is valid. |
In |
|
Which characters are scrambled? Please mention a few examples so that we can try it out. |
So if I use a file (misans.bin) to load, I need to prepare 7.5MB of RAM in MCU? So do you recommend using tinyttf for real-time rendering? This only requires 4KB of RAM to complete? And my MCU RAM is <200KB, So Which way can I use to load the font? |
For example:硬件测试 |
I suggest trying it out, but tiny ttf can be solution for sure. |
lv_font_conv --font MiSans-Medium.ttf -r 0x20-0x7F --size 40 --format bin --bpp 2 --no-compress -o cour40_2.bin
This bin file ok.
lv_font_conv --font MiSans-Medium.ttf -r 0x20-0x7F -r 0x4E00-0x9FA5 --size 40 --format bin --bpp 2 --no-compress -o cour40_2unicode.bin
Use lv_font_load() functions.Failed to load ambiq_cour40_2unicode.bin file.
Please advise how to deal with it?
The text was updated successfully, but these errors were encountered: