diff --git a/assets/Inter_18pt-Light.ttf b/assets/Inter_18pt-Light.ttf new file mode 100644 index 0000000..acae361 Binary files /dev/null and b/assets/Inter_18pt-Light.ttf differ diff --git a/assets/Inter_18pt-Regular.ttf b/assets/Inter_18pt-Regular.ttf new file mode 100644 index 0000000..ce097c8 Binary files /dev/null and b/assets/Inter_18pt-Regular.ttf differ diff --git a/assets/Ubuntu-Regular.ttf b/assets/Ubuntu-Regular.ttf deleted file mode 100644 index f98a2da..0000000 Binary files a/assets/Ubuntu-Regular.ttf and /dev/null differ diff --git a/src/gui/run.rs b/src/gui/run.rs index bb3d23a..695eabf 100644 --- a/src/gui/run.rs +++ b/src/gui/run.rs @@ -37,12 +37,21 @@ fn app_creator( // load any extra fonts that we need let mut fonts = egui::FontDefinitions::default(); fonts.font_data.insert( - "Ubuntu-Regular".to_owned(), - egui::FontData::from_static(include_bytes!("../../assets/Ubuntu-Regular.ttf")).into(), + "Inter 18pt Light".to_owned(), + egui::FontData::from_static(include_bytes!("../../assets/Inter_18pt-Light.ttf")).into(), + ); + fonts + .families + .get_mut(&egui::FontFamily::Proportional) + .unwrap() + .insert(0, "Inter 18pt Light".to_owned()); + fonts.font_data.insert( + "Inter 18pt Regular".to_owned(), + egui::FontData::from_static(include_bytes!("../../assets/Inter_18pt-Regular.ttf")).into(), ); fonts.families.insert( - egui::FontFamily::Name("Ubuntu-Regular".into()), - vec!["Ubuntu-Regular".to_owned()], + egui::FontFamily::Name("Inter 18pt Regular".into()), + vec!["Inter 18pt Regular".to_owned()], ); cc.egui_ctx.set_fonts(fonts); // finally return the App diff --git a/src/gui/ui_ext.rs b/src/gui/ui_ext.rs index bae485c..8e4ec90 100644 --- a/src/gui/ui_ext.rs +++ b/src/gui/ui_ext.rs @@ -13,7 +13,7 @@ impl UiExt for egui::Ui { self.horizontal(|ui| { ui.label(egui::RichText::new(text).font(egui::FontId::new( 12.5, - egui::FontFamily::Name("Ubuntu-Regular".into()), + egui::FontFamily::Name("Inter 18pt Regular".into()), ))); ui.add(egui::Separator::default().horizontal()); });