mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-26 21:08:40 +00:00
[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:
parent
77c79f4e61
commit
ecffa09e84
@ -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(
|
imgui.fonts().add_font_with_config(
|
||||||
include_bytes!("../mplus-1p-regular.ttf"),
|
include_bytes!("../../../resources/mplus-1p-regular.ttf"),
|
||||||
ImFontConfig::new()
|
ImFontConfig::new()
|
||||||
.merge_mode(true)
|
.merge_mode(true)
|
||||||
.oversample_h(1)
|
.oversample_h(1)
|
||||||
|
|||||||
Binary file not shown.
@ -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(
|
imgui.fonts().add_font_with_config(
|
||||||
include_bytes!("../mplus-1p-regular.ttf"),
|
include_bytes!("../../../resources/mplus-1p-regular.ttf"),
|
||||||
ImFontConfig::new()
|
ImFontConfig::new()
|
||||||
.merge_mode(true)
|
.merge_mode(true)
|
||||||
.oversample_h(1)
|
.oversample_h(1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user