Undo the font tweaks on Inconsolata, it messes with line height

This commit is contained in:
Mike Dilger 2022-12-22 06:38:07 +13:00
parent e44936d7d1
commit eb1d3a8141

View File

@ -274,12 +274,7 @@ pub(super) fn font_definitions() -> FontDefinitions {
"InconsolataRegular".to_owned(), "InconsolataRegular".to_owned(),
FontData::from_static(include_bytes!( FontData::from_static(include_bytes!(
"../../fonts/inconsolata/Inconsolata-SemiCondensedLight.ttf" "../../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( font_data.insert(
@ -308,12 +303,7 @@ pub(super) fn font_definitions() -> FontDefinitions {
"InconsolataBold".to_owned(), "InconsolataBold".to_owned(),
FontData::from_static(include_bytes!( FontData::from_static(include_bytes!(
"../../fonts/inconsolata/Inconsolata-SemiCondensedSemiBold.ttf" "../../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( font_data.insert(