lvgl / lv_utils

Convert images or system fonts to C arrays. Written for LVGL embedded GUI library
https://littlevgl.com
53 stars 39 forks source link

Font generate binary #6

Closed shlsyc closed 6 years ago

shlsyc commented 6 years ago

For Chinese characters, in general, font files are quite large, so the generated C files are quite large. Can provide functions of generating binary files?

kisvegabor commented 6 years ago

Unfortunately there is no binary font type explicitly now. However you can do it with a small script which reads to C file and writes it to binary file.

I suppose you don't need all the Chinese characters. You can use sparse fonts too (where there a gap because not all letters are included) Use the "List" field of the converter for this purpose. Maybe it helps to avoid dealing with binary files.

shlsyc commented 6 years ago

Thank you for your advice