micropython-esp32
micropython-esp32 copied to clipboard
[Enhancement] Anti-aliased font support
Using lv_font_conv with its --lcd or --lcd-v options resulted in .bin files that just rendered as blank.
Those files have to be generated at a specific font size and so are inefficient anyway (we have multiple versions of the same font in different sizes).
It would be better to convert the ttf/otf with built_in_font_gen.py and compile it directly into the firmware. See option #3: https://docs.lvgl.io/latest/en/html/overview/font.html#add-new-font
I tried this before but failed to figure out how to get the compiled font file to be accessible in python. If successful, this approach is ideal as lvgl can then render the font at any font size.