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:
+2
-2
@@ -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"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user