2024-12-29, 11:16 PM
You technically can, but it's not very well supported or documented yet. Fonts are currently loaded here: https://codeberg.org/cool-tech-zone/tang...a/font.lua
Using files generated from this script: https://codeberg.org/cool-tech-zone/tang...mkfonts.sh
You could use `lvgl.Font` to load up your own font (provided it's in the correct format) within your theme, but we don't have a mechanism to unload the default fonts atm. Ideally I think we should make font loading a part of the theme so that it's easier to change. It would be also good to investigate whether we can use a 'real' font format to avoid needing to convert to LVGL's special format (I also have issues with LVGL's format due to load times; most of our boot time atm is due to parsing the font files from flash)
Using files generated from this script: https://codeberg.org/cool-tech-zone/tang...mkfonts.sh
You could use `lvgl.Font` to load up your own font (provided it's in the correct format) within your theme, but we don't have a mechanism to unload the default fonts atm. Ideally I think we should make font loading a part of the theme so that it's easier to change. It would be also good to investigate whether we can use a 'real' font format to avoid needing to convert to LVGL's special format (I also have issues with LVGL's format due to load times; most of our boot time atm is due to parsing the font files from flash)