summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 *);