Load fonts dynamically from /lua

This unfortunately slows boot time by a bit, but I think we should be able to reclaim that time eventually.
This commit is contained in:
jacqueline
2024-06-14 13:35:42 +10:00
parent 5086ab96ea
commit 7f2d56e29a
10 changed files with 78 additions and 139827 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
local lvgl = require("lvgl")
return {
fusion_12 = lvgl.Font("fusion", 12, "normal"),
fusion_10 = lvgl.Font("fusion", 10, "normal"),
fusion_12 = lvgl.Font("//lua/fonts/fusion12"),
fusion_10 = lvgl.Font("//lua/fonts/fusion10"),
}