From a27b7ea0b00cd3719407e7dcaf1b64c4244aa370 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 12 Apr 2022 15:16:54 -0400 Subject: [PATCH] fix font test --- src/math_app.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/math_app.rs b/src/math_app.rs index d64270d..7c399b2 100644 --- a/src/math_app.rs +++ b/src/math_app.rs @@ -178,7 +178,13 @@ fn test_file_data() { ), ( "emoji-icon-font".to_owned(), - FontData::from_owned(include_bytes!("../assets/emoji-icon-font.ttf").to_vec()), + FontData::from_owned(include_bytes!("../assets/emoji-icon-font.ttf").to_vec()).tweak( + egui::FontTweak { + scale: 0.8, + y_offset_factor: 0.07, + y_offset: 0.0, + }, + ), ), ]);