Better font alignment

This commit is contained in:
Mike Dilger 2023-01-19 11:26:11 +13:00
parent e1e74f65f8
commit 40fb9a1f6b

View File

@ -140,7 +140,7 @@ pub(super) fn font_definitions() -> FontDefinitions {
FontData::from_static(include_bytes!("../../fonts/Inconsolata-Regular.ttf")).tweak( FontData::from_static(include_bytes!("../../fonts/Inconsolata-Regular.ttf")).tweak(
FontTweak { FontTweak {
scale: 1.22, // This font is smaller than DejaVuSans scale: 1.22, // This font is smaller than DejaVuSans
y_offset_factor: -0.21, // and too low y_offset_factor: -0.18, // and too low
y_offset: 0.0, y_offset: 0.0,
}, },
), ),