From eb1d3a814195aa2a05051d518bf492cf75bd0903 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Thu, 22 Dec 2022 06:38:07 +1300 Subject: [PATCH] Undo the font tweaks on Inconsolata, it messes with line height --- src/ui/style.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/ui/style.rs b/src/ui/style.rs index 9aa0cdf9..b549445a 100644 --- a/src/ui/style.rs +++ b/src/ui/style.rs @@ -274,12 +274,7 @@ pub(super) fn font_definitions() -> FontDefinitions { "InconsolataRegular".to_owned(), FontData::from_static(include_bytes!( "../../fonts/inconsolata/Inconsolata-SemiCondensedLight.ttf" - )) - .tweak(FontTweak { - scale: 1.1, // Make it bigger. Inconsolata is smaller than DejaVu. - y_offset_factor: 0.0, - y_offset: 0.0, - }), + )), ); font_data.insert( @@ -308,12 +303,7 @@ pub(super) fn font_definitions() -> FontDefinitions { "InconsolataBold".to_owned(), FontData::from_static(include_bytes!( "../../fonts/inconsolata/Inconsolata-SemiCondensedSemiBold.ttf" - )) - .tweak(FontTweak { - scale: 1.1, // Make it bigger. Inconsolata is smaller than DejaVu. - y_offset_factor: 0.0, - y_offset: 0.0, - }), + )), ); font_data.insert(