Skip to content

Commit 75fa67e

Browse files
committed
Fix examples with fonts.
1 parent 5f9ab2e commit 75fa67e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
16.5 KB
Binary file not shown.

easy-imgui-window/examples/demo.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ fn main() {
1919
struct App;
2020

2121
static KARLA_TTF: &[u8] = include_bytes!("Karla-Regular.ttf");
22-
static UBUNTU_TTF: &[u8] = include_bytes!("Ubuntu-R.ttf");
2322

2423
impl Application for App {
2524
type UserEvent = ();
@@ -31,7 +30,6 @@ impl Application for App {
3130
let font_atlas = imgui.io_mut().font_atlas_mut();
3231
font_atlas.add_font(imgui::FontInfo::default_font());
3332
font_atlas.add_font(imgui::FontInfo::new(KARLA_TTF).set_name("karla"));
34-
font_atlas.add_font(imgui::FontInfo::new(UBUNTU_TTF).set_name("ubuntu"));
3533
//imgui.style_mut().FontSizeBase = 16.0;
3634
App
3735
}

0 commit comments

Comments
 (0)