fix(ui): Correct font asset loading paths for test workspace isolation

This commit is contained in:
2026-03-08 21:52:35 -04:00
parent 605b2ac024
commit c6dd055da8
2 changed files with 18 additions and 7 deletions

View File

@@ -241,7 +241,7 @@ def load_from_config(config: dict) -> None:
global _current_font_path, _current_font_size, _current_scale, _current_palette
t = config.get("theme", {})
_current_palette = t.get("palette", "ImGui Dark")
_current_font_path = t.get("font_path", "assets/fonts/Inter-Regular.ttf")
_current_font_path = t.get("font_path", "fonts/Inter-Regular.ttf")
_current_font_size = float(t.get("font_size", 16.0))
_current_scale = float(t.get("scale", 1.0))
# Don't apply here — imgui context may not exist yet.