Removed font loading, need to figure out a better solution

This commit is contained in:
G2-Games 2024-09-08 02:49:30 -05:00
parent 42014a6eb2
commit e9963afa4d

View file

@ -17,36 +17,10 @@ fn main() -> eframe::Result {
..Default::default() ..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( eframe::run_native(
"LUCA PAK Explorer", "LUCA PAK Explorer",
options, options,
Box::new(|cc| { Box::new(|_ctx| {
cc.egui_ctx.set_fonts(fonts);
Ok(Box::<PakExplorer>::default()) Ok(Box::<PakExplorer>::default())
}), }),
) )