git.lucas.co / cce-files
file manager
git clone https://git.lucas.co/cce-files.git

commit117035601b7c3b518b5f126e8061d78d07551442
parent5d99e3089a
authorLucas Galante <[email protected]>
date2026-07-06 13:06
Initialize font system using create_font_system to fix missing font rendering fallback issue

 src/main.rs | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 28639fe..3d206d4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -598,11 +598,7 @@ impl Application for FilesystemApp {
             save_mode,
             widgets: Vec::new(),
             text_items: Vec::new(),
-            font_system: {
-                let mut fs = FontSystem::new();
-                fs.db_mut().load_fonts_dir("/home/lsgalante/Dropbox/Fonts");
-                fs
-            },
+            font_system: cce_ui::create_font_system(),
             needs_rebuild: true,
             width: initial_w,
             height: initial_h,