1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-06 03:27:17 +03:00

lvgui: Add monospace font info

Which uses Fira Mono as added in the previous commit.
This commit is contained in:
Samuel Dionne-Riel 2021-07-21 20:50:48 -04:00
parent dfa2848ed6
commit 6ad619dfb4

View File

@ -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.