diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-04 09:43:04 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-04 09:43:04 +0300 |
commit | e53a1e52ee84b07397bff9ce92a59554fc8a1431 (patch) | |
tree | 354c150ea3a194304ebed6348555256d33c3ab40 /src/ui/text.h | |
parent | 376964f2301778a8c6e31332281b517e6bc4de5e (diff) |
Text: Adjusted Noto Symbols scaling
Diffstat (limited to 'src/ui/text.h')
-rw-r--r-- | src/ui/text.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/text.h b/src/ui/text.h index e5b57bf4..ac9db405 100644 --- a/src/ui/text.h +++ b/src/ui/text.h | |||
@@ -45,6 +45,13 @@ enum iFontSize { | |||
45 | max_FontSize, | 45 | max_FontSize, |
46 | }; | 46 | }; |
47 | 47 | ||
48 | iLocalDef enum iFontSize larger_FontSize(enum iFontSize size) { | ||
49 | if (size == uiLarge_FontSize || size == contentHuge_FontSize || size == contentMono_FontSize) { | ||
50 | return size; /* biggest available */ | ||
51 | } | ||
52 | return size + 1; | ||
53 | } | ||
54 | |||
48 | enum iFontId { | 55 | enum iFontId { |
49 | /* UI fonts: normal weight (1x, 1.125x, 1.33x, 1.67x) */ | 56 | /* UI fonts: normal weight (1x, 1.125x, 1.33x, 1.67x) */ |
50 | default_FontId = 0, | 57 | default_FontId = 0, |