1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

You can override the default Egui fonts

Closes https://github.com/emilk/egui/issues/32
This commit is contained in:
Emil Ernerfeldt
2020-10-31 18:03:13 +01:00
parent 82d55cb67e
commit ca96172552
7 changed files with 35 additions and 21 deletions

View File

@@ -57,6 +57,7 @@ pub fn run(
let mut ctx = egui::Context::new();
*ctx.memory() = egui::app::get_value(storage.as_ref(), EGUI_MEMORY_KEY).unwrap_or_default();
app.setup(&ctx);
let mut raw_input = egui::RawInput {
pixels_per_point: Some(native_pixels_per_point(&display)),