From 1591153bb508b4cb999c51906be1a9a6270154cb Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 17 Dec 2020 07:15:33 +0200 Subject: Text: Tuned content monospace line spacing --- src/ui/text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/text.c') diff --git a/src/ui/text.c b/src/ui/text.c index 231c2976..96799c9e 100644 --- a/src/ui/text.c +++ b/src/ui/text.c @@ -176,7 +176,7 @@ static iText text_; static void initFonts_Text_(iText *d) { const float textSize = fontSize_UI * d->contentFontSize; - const float monoSize = textSize * 0.71f; //fontSize_UI * d->contentFontSize / contentScale_Text_ * 1.0f; //0.866f; + const float monoSize = textSize * 0.71f; const float smallMonoSize = monoSize * 0.8f; const iBlock *regularFont = &fontNunitoRegular_Embedded; const iBlock *italicFont = &fontNunitoLightItalic_Embedded; @@ -239,7 +239,7 @@ static void initFonts_Text_(iText *d) { { h12Font, textSize * 2.000f, h123Scaling, hugeSymbols_FontId }, { lightFont, textSize * 1.666f, lightScaling, largeSymbols_FontId }, /* monospace content fonts */ - { &fontIosevkaTermExtended_Embedded, textSize, 0.75f, symbols_FontId }, + { &fontIosevkaTermExtended_Embedded, textSize, 0.866f, symbols_FontId }, /* symbol fonts */ { &fontSymbola_Embedded, fontSize_UI, 1.0f, defaultSymbols_FontId }, { &fontSymbola_Embedded, fontSize_UI * 1.125f, 1.0f, defaultMediumSymbols_FontId }, -- cgit v1.2.3