From e9963afa4d27c2bbdfd88ec7194dc71c0c354b3b Mon Sep 17 00:00:00 2001 From: G2-Games Date: Sun, 8 Sep 2024 02:49:30 -0500 Subject: [PATCH] Removed font loading, need to figure out a better solution --- pak_explorer/src/main.rs | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/pak_explorer/src/main.rs b/pak_explorer/src/main.rs index 09dae00..bbd0067 100644 --- a/pak_explorer/src/main.rs +++ b/pak_explorer/src/main.rs @@ -17,36 +17,10 @@ fn main() -> eframe::Result { ..Default::default() }; - let mut fonts = egui::FontDefinitions::default(); - fonts.font_data.insert( - "Noto Sans".to_owned(), - egui::FontData::from_static(include_bytes!( - "/home/g2/Downloads/Noto_Sans/static/NotoSans-Regular.ttf" - )), - ); - fonts.font_data.insert( - "Noto Sans Japanese".to_owned(), - egui::FontData::from_static(include_bytes!( - "/home/g2/Downloads/Noto_Sans_JP/static/NotoSansJP-Regular.ttf" - )), - ); - fonts - .families - .entry(egui::FontFamily::Proportional) - .or_default() - .insert(0, "Noto Sans".to_owned()); - fonts - .families - .entry(egui::FontFamily::Proportional) - .or_default() - .insert(1, "Noto Sans Japanese".to_owned()); - eframe::run_native( "LUCA PAK Explorer", options, - Box::new(|cc| { - cc.egui_ctx.set_fonts(fonts); - + Box::new(|_ctx| { Ok(Box::::default()) }), )