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.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/ui/text.h b/src/ui/text.h
index 2b4ec5c3..9a22620f 100644
--- a/src/ui/text.h
+++ b/src/ui/text.h
@@ -40,7 +40,7 @@ enum iFontId {
40 mediumBold_FontId, 40 mediumBold_FontId,
41 largeBold_FontId, 41 largeBold_FontId,
42 hugeBold_FontId, 42 hugeBold_FontId,
43 largeLight_FontId, 43 largeLight_FontId,
44 /* symbol fonts */ 44 /* symbol fonts */
45 defaultSymbols_FontId, 45 defaultSymbols_FontId,
46 defaultMediumSymbols_FontId, 46 defaultMediumSymbols_FontId,
@@ -57,10 +57,17 @@ enum iFontId {
57 largeEmoji_FontId, 57 largeEmoji_FontId,
58 hugeEmoji_FontId, 58 hugeEmoji_FontId,
59 smallEmoji_FontId, 59 smallEmoji_FontId,
60 /* japanese script */
61 smallJapanese_FontId,
62 regularJapanese_FontId,
63 mediumJapanese_FontId,
64 largeJapanese_FontId,
65 hugeJapanese_FontId,
60 max_FontId, 66 max_FontId,
61 67
62 /* Meta: */ 68 /* Meta: */
63 fromSymbolsToEmojiOffset_FontId = 7, 69 fromSymbolsToEmojiOffset_FontId = 7,
70
64 /* UI fonts: */ 71 /* UI fonts: */
65 uiLabel_FontId = default_FontId, 72 uiLabel_FontId = default_FontId,
66 uiShortcuts_FontId = default_FontId, 73 uiShortcuts_FontId = default_FontId,
@@ -78,6 +85,10 @@ enum iFontId {
78 banner_FontId = largeLight_FontId, 85 banner_FontId = largeLight_FontId,
79}; 86};
80 87
88iLocalDef iBool isJapanese_FontId(enum iFontId id) {
89 return id >= smallJapanese_FontId && id <= hugeJapanese_FontId;
90}
91
81#define variationSelectorEmoji_Char ((iChar) 0xfe0f) 92#define variationSelectorEmoji_Char ((iChar) 0xfe0f)
82 93
83extern int gap_Text; /* affected by content font size */ 94extern int gap_Text; /* affected by content font size */