lvgui: Add monospace font info
Which uses Fira Mono as added in the previous commit.
@@ -68,6 +68,10 @@ module LVGUI
25
end
+ def monospace_size()
+ 20
+ end
+
def primary(size = primary_size)
LVGL::Hacks.get_font("fonts/Roboto-Regular.ttf", size)
end
@@ -75,6 +79,10 @@ module LVGUI
def secondary(size = secondary_size)
LVGL::Hacks.get_font("fonts/overpass-bold.otf", size)
end
+
+ def monospace(size = monospace_size)
+ LVGL::Hacks.get_font("fonts/FiraMono-Regular.otf", size)
+ end
end
# Sets things up; back box for some ugly hacks.
