From 692db72f23b6157aad2d450ec47410115c1fb76f Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 1 Oct 2021 16:23:10 +0300 Subject: Text: Added small size to symbol fonts --- src/ui/text.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/ui/text.c') diff --git a/src/ui/text.c b/src/ui/text.c index de8f10a4..0d7559cb 100644 --- a/src/ui/text.c +++ b/src/ui/text.c @@ -381,16 +381,16 @@ static void initFonts_Text_(iText *d) { /* Content sizes: smallmono, mono, 1.0, 1.2, 1.333, 1.666, 2.0 */ } fontData[max_FontId] = { /* UI fonts: normal weight */ - { &fontSourceSans3Regular_Embedded, uiSize, 1.0f, uiNormal_FontSize }, - { &fontSourceSans3Regular_Embedded, uiSize * 1.125f, 1.0f, uiMedium_FontSize }, - { &fontSourceSans3Regular_Embedded, uiSize * 1.333f, 1.0f, uiBig_FontSize }, - { &fontSourceSans3Regular_Embedded, uiSize * 1.666f, 1.0f, uiLarge_FontSize }, - { &fontSourceSans3Semibold_Embedded, uiSize * 0.8f, 1.0f, uiNormal_FontSize }, + { &fontSourceSans3Regular_Embedded, uiSize, 1.0f, uiNormal_FontSize }, + { &fontSourceSans3Regular_Embedded, uiSize * 1.125f, 1.0f, uiMedium_FontSize }, + { &fontSourceSans3Regular_Embedded, uiSize * 1.333f, 1.0f, uiBig_FontSize }, + { &fontSourceSans3Regular_Embedded, uiSize * 1.666f, 1.0f, uiLarge_FontSize }, + { &fontSourceSans3Semibold_Embedded, uiSize * 0.800f, 1.0f, uiSmall_FontSize }, /* UI fonts: bold weight */ - { &fontSourceSans3Bold_Embedded, uiSize, 1.0f, uiNormal_FontSize }, - { &fontSourceSans3Bold_Embedded, uiSize * 1.125f, 1.0f, uiMedium_FontSize }, - { &fontSourceSans3Bold_Embedded, uiSize * 1.333f, 1.0f, uiBig_FontSize }, - { &fontSourceSans3Bold_Embedded, uiSize * 1.666f, 1.0f, uiLarge_FontSize }, + { &fontSourceSans3Bold_Embedded, uiSize, 1.0f, uiNormal_FontSize }, + { &fontSourceSans3Bold_Embedded, uiSize * 1.125f, 1.0f, uiMedium_FontSize }, + { &fontSourceSans3Bold_Embedded, uiSize * 1.333f, 1.0f, uiBig_FontSize }, + { &fontSourceSans3Bold_Embedded, uiSize * 1.666f, 1.0f, uiLarge_FontSize }, /* content fonts */ { regularFont, textSize, scaling, contentRegular_FontSize }, { boldFont, textSize, scaling, contentRegular_FontSize }, @@ -411,6 +411,7 @@ static void initFonts_Text_(iText *d) { { (data), uiSize * 1.125f, glyphScale, uiMedium_FontSize }, \ { (data), uiSize * 1.333f, glyphScale, uiBig_FontSize }, \ { (data), uiSize * 1.666f, glyphScale, uiLarge_FontSize }, \ + { (data), uiSize * 0.800f, glyphScale, uiSmall_FontSize }, \ { (data), textSize, glyphScale, contentRegular_FontSize }, \ { (data), textSize * 1.200f, glyphScale, contentMedium_FontSize }, \ { (data), textSize * 1.333f, glyphScale, contentBig_FontSize }, \ -- cgit v1.2.3