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 ++++++++++--------- src/ui/text.h | 1 + 2 files changed, 11 insertions(+), 9 deletions(-) (limited to 'src/ui') 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 }, \ diff --git a/src/ui/text.h b/src/ui/text.h index 1da43818..21ed4c8e 100644 --- a/src/ui/text.h +++ b/src/ui/text.h @@ -35,6 +35,7 @@ enum iFontSize { uiMedium_FontSize, /* 1.125 */ uiBig_FontSize, /* 1.333 */ uiLarge_FontSize, /* 1.666 */ + uiSmall_FontSize, /* 0.800 */ contentRegular_FontSize, contentMedium_FontSize, contentBig_FontSize, -- cgit v1.2.3