diff --git a/assets/selawk.ttf b/assets/selawk.ttf new file mode 100644 index 0000000..736bac3 Binary files /dev/null and b/assets/selawk.ttf differ diff --git a/src/app.rs b/src/app.rs index 2906783..5aadce6 100644 --- a/src/app.rs +++ b/src/app.rs @@ -223,10 +223,12 @@ impl AppWindow { ); context.set_ini_filename(None); - let font_size = (13.0 * self.hidpi_factor) as f32; + let font_size = (16.0 * self.hidpi_factor) as f32; context.io_mut().font_global_scale = (1.0 / self.hidpi_factor) as f32; - context.fonts().add_font(&[FontSource::DefaultFontData { + context.fonts().add_font(&[FontSource::TtfData { + data: include_bytes!("../assets/selawk.ttf"), + size_pixels: font_size, config: Some(imgui::FontConfig { oversample_h: 1, pixel_snap_h: true, @@ -235,6 +237,9 @@ impl AppWindow { }), }]); + let style = context.style_mut(); + style.use_light_colors(); + // // Set up dear imgui wgpu renderer //