summaryrefslogtreecommitdiff
path: root/src/ui/text.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-04 09:43:04 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-04 09:43:04 +0300
commite53a1e52ee84b07397bff9ce92a59554fc8a1431 (patch)
tree354c150ea3a194304ebed6348555256d33c3ab40 /src/ui/text.h
parent376964f2301778a8c6e31332281b517e6bc4de5e (diff)
Text: Adjusted Noto Symbols scaling
Diffstat (limited to 'src/ui/text.h')
-rw-r--r--src/ui/text.h7
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
48iLocalDef 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
48enum iFontId { 55enum 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,