diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-08 18:59:45 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-08 18:59:45 +0200 |
commit | f5d39a1487db6259cc7a99e98d2fe70e29c61c46 (patch) | |
tree | cb972fa0a163cc72a476985185476a98b0ee92ec /src/ui/text.h | |
parent | a31b3f27037cc75b733a34871cfadc9707055b16 (diff) |
Improved custom link icons; link list spacing
Link lists and bullet lists are spaced the same way.
Diffstat (limited to 'src/ui/text.h')
-rw-r--r-- | src/ui/text.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui/text.h b/src/ui/text.h index d57c2c62..8a023546 100644 --- a/src/ui/text.h +++ b/src/ui/text.h | |||
@@ -39,7 +39,7 @@ enum iFontId { | |||
39 | defaultLarge_FontId, | 39 | defaultLarge_FontId, |
40 | defaultLargeBold_FontId, | 40 | defaultLargeBold_FontId, |
41 | defaultMonospace_FontId, | 41 | defaultMonospace_FontId, |
42 | defaultContentSized_FontId, | 42 | defaultContentSized_FontId, |
43 | /* content fonts */ | 43 | /* content fonts */ |
44 | regular_FontId, | 44 | regular_FontId, |
45 | monospace_FontId, | 45 | monospace_FontId, |
@@ -138,14 +138,16 @@ iLocalDef iBool isDefaultIgnorable_Char(iChar c) { | |||
138 | } | 138 | } |
139 | iLocalDef iBool isEmoji_Char(iChar c) { | 139 | iLocalDef iBool isEmoji_Char(iChar c) { |
140 | return (c >= 0x1f300 && c < 0x1f700) || (c >= 0x1f7e0 && c <= 0x1f7eb) || | 140 | return (c >= 0x1f300 && c < 0x1f700) || (c >= 0x1f7e0 && c <= 0x1f7eb) || |
141 | (c >= 0x1f900 && c <= 0x1f9ff); | 141 | (c >= 0x1f900 && c <= 0x1f9ff) || (c >= 0x1fa70 && c <= 0x1faff); |
142 | } | 142 | } |
143 | iLocalDef iBool isDingbats_Char(iChar c) { | 143 | iLocalDef iBool isDingbats_Char(iChar c) { |
144 | return c >= 0x2702 && c <= 0x27b0; | 144 | return c >= 0x2702 && c <= 0x27b0; |
145 | } | 145 | } |
146 | iLocalDef iBool isSymbol_Char(iChar c) { | 146 | iLocalDef iBool isSymbol_Char(iChar c) { |
147 | return (c == 0x2218 || c == 0x2219) || (c >= 0x1f680 && c <= 0x1f6c0) || | 147 | return (c == 0x21a9) || |
148 | (c >= 0x2300 && c <= 0x26ff); | 148 | (c == 0x2218 || c == 0x2219) || |
149 | (c >= 0x2300 && c <= 0x26ff) || | ||
150 | (c >= 0x1f680 && c <= 0x1f6c0); | ||
149 | } | 151 | } |
150 | 152 | ||
151 | #define emojiVariationSelector_Char ((iChar) 0xfe0f) | 153 | #define emojiVariationSelector_Char ((iChar) 0xfe0f) |