use system font DejaVuSans
This commit is contained in:
BIN
DejaVuSans.ttf
BIN
DejaVuSans.ttf
Binary file not shown.
@@ -120,7 +120,9 @@ fn setup_custom_fonts(ctx: &egui::Context) {
|
|||||||
fonts.font_data.insert(
|
fonts.font_data.insert(
|
||||||
"custom".to_string(),
|
"custom".to_string(),
|
||||||
FontData::from_owned(
|
FontData::from_owned(
|
||||||
std::fs::read("DejaVuSans.ttf").expect("Failed to load font"),
|
|
||||||
|
|
||||||
|
std::fs::read("/usr/share/fonts/TTF/DejaVuSans.ttf").expect("Failed to load font"),
|
||||||
).into(),
|
).into(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user