summaryrefslogtreecommitdiff
path: root/src/ui/text.h
diff options
context:
space:
mode:
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,