From 4dab7a1504fb1063623f558e9d17118fbbefe0f3 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 14 Jan 2019 07:54:27 -0600 Subject: [PATCH] Fix font test --- emigui/src/font.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/emigui/src/font.rs b/emigui/src/font.rs index 6eefb9c0..82b42890 100644 --- a/emigui/src/font.rs +++ b/emigui/src/font.rs @@ -338,8 +338,10 @@ mod tests { use super::*; #[test] fn font_test() { - let font = Font::new(13); + let atlas = TextureAtlas::new(128, 8); + let atlas = Arc::new(Mutex::new(atlas)); + let font_data = include_bytes!("../fonts/Roboto-Regular.ttf"); + let font = Font::new(atlas, font_data, 13); font.debug_print_all_chars(); - panic!(); } }