[examples] Have examples share font resources

We do not keep a copy of the same file in two different places.
Let's move the resources to the same directory.
This commit is contained in:
Malik Olivier Boussejra 2018-11-23 16:52:52 +09:00
parent 77c79f4e61
commit ecffa09e84
4 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ pub fn run<F: FnMut(&Ui) -> bool>(title: String, clear_color: [f32; 4], mut run_
);
imgui.fonts().add_font_with_config(
include_bytes!("../mplus-1p-regular.ttf"),
include_bytes!("../../../resources/mplus-1p-regular.ttf"),
ImFontConfig::new()
.merge_mode(true)
.oversample_h(1)

View File

@ -32,7 +32,7 @@ pub fn run<F: FnMut(&Ui) -> bool>(title: String, clear_color: [f32; 4], mut run_
);
imgui.fonts().add_font_with_config(
include_bytes!("../mplus-1p-regular.ttf"),
include_bytes!("../../../resources/mplus-1p-regular.ttf"),
ImFontConfig::new()
.merge_mode(true)
.oversample_h(1)