System Font
#11
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)
  Reply


Messages In This Thread
System Font - by mspl - 2024-03-13, 02:13 AM
RE: System Font - by jacqueline - 2024-03-13, 02:19 AM
RE: System Font - by mspl - 2024-03-13, 11:54 AM
RE: System Font - by khm - 2024-03-13, 02:43 AM
RE: System Font - by jepyang - 2024-03-13, 03:21 AM
RE: System Font - by wezm - 2024-03-13, 04:26 AM
RE: System Font - by jacqueline - 2024-03-13, 09:37 PM
RE: System Font - by Shiny! - 2024-03-13, 11:54 PM
RE: System Font - by jacqueline - 2024-03-14, 12:01 AM
RE: System Font - by yosthum - 2024-12-27, 03:12 PM
RE: System Font - by jacqueline - 2024-12-29, 11:16 PM
RE: System Font - by yosthum - 2025-01-02, 11:36 AM

Forum Jump: