summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-15 07:43:29 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-15 07:43:29 +0300
commita0ebaca4600d38df843244bda5f54a75d7c59d83 (patch)
treea67637d9983b94bd60d0d928287bf3eed61dad33 /src/ui
parente1b14547b139a00b2bf10232c1918792e6cb1aff (diff)
Text: Emoji selector ignored
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/text.c4
-rw-r--r--src/ui/text.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 5ddadc1b..88254aad 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -416,6 +416,10 @@ static iRect run_Font_(iFont *d, enum iRunMode mode, iRangecc text, size_t maxLe
416 } 416 }
417 } 417 }
418 iChar ch = nextChar_(&chPos, text.end); 418 iChar ch = nextChar_(&chPos, text.end);
419 if (ch == variationSelectorEmoji_Char) {
420 /* TODO: Should peek ahead for this and prefer the Emoji font. */
421 ch = nextChar_(&chPos, text.end); /* just ignore */
422 }
419 /* Special instructions. */ { 423 /* Special instructions. */ {
420 if (ch == '\n') { 424 if (ch == '\n') {
421 xpos = pos.x; 425 xpos = pos.x;
diff --git a/src/ui/text.h b/src/ui/text.h
index 25a13dec..85ab44e2 100644
--- a/src/ui/text.h
+++ b/src/ui/text.h
@@ -55,6 +55,8 @@ enum iFontId {
55 banner_FontId = largeLight_FontId, 55 banner_FontId = largeLight_FontId,
56}; 56};
57 57
58#define variationSelectorEmoji_Char ((iChar) 0xfe0f)
59
58extern int gap_Text; /* affected by content font size */ 60extern int gap_Text; /* affected by content font size */
59 61
60void init_Text (SDL_Renderer *); 62void init_Text (SDL_Renderer *);