feat(ui): Integrate Inter and Maple Mono typography
This commit is contained in:
10
src/gui_2.py
10
src/gui_2.py
@@ -2754,7 +2754,15 @@ class App:
|
||||
def _load_fonts(self) -> None:
|
||||
font_path, font_size = theme.get_font_loading_params()
|
||||
if font_path and Path(font_path).exists():
|
||||
hello_imgui.load_font(font_path, font_size)
|
||||
self.main_font = hello_imgui.load_font_ttf_with_font_awesome_icons(font_path, font_size)
|
||||
else:
|
||||
self.main_font = None
|
||||
|
||||
mono_path = Path("assets/fonts/MapleMono-Regular.ttf")
|
||||
if mono_path.exists():
|
||||
self.mono_font = hello_imgui.load_font(str(mono_path), font_size)
|
||||
else:
|
||||
self.mono_font = None
|
||||
|
||||
def _post_init(self) -> None:
|
||||
theme.apply_current()
|
||||
|
||||
Reference in New Issue
Block a user