diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-13 09:39:01 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-13 09:43:08 +0300 |
commit | b505a32d5e3dc6f8405cf48a5f854b1c09534038 (patch) | |
tree | d1a6b14a930116c4d184bd23ab61c6fa6b7ac211 /src/ui/text.h | |
parent | a7806a4cd61e8125b9ce095515418e84f34256c1 (diff) |
Added Kosugi Maru for Japanese text
Kosugi Maru is from Google Fonts and licensed used Apache License 2.0.
Diffstat (limited to 'src/ui/text.h')
-rw-r--r-- | src/ui/text.h | 13 |
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 | ||
88 | iLocalDef 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 | ||
83 | extern int gap_Text; /* affected by content font size */ | 94 | extern int gap_Text; /* affected by content font size */ |