summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/text.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index ae952df9..082899b0 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -582,7 +582,6 @@ iLocalDef iFont *characterFont_Font_(iFont *d, iChar ch, uint32_t *glyphIndex) {
582 return d; 582 return d;
583 } 583 }
584 const int fallbacks[] = { 584 const int fallbacks[] = {
585 smolEmoji_FontId,
586 notoEmoji_FontId, 585 notoEmoji_FontId,
587 symbols2_FontId, 586 symbols2_FontId,
588 symbols_FontId 587 symbols_FontId
@@ -636,8 +635,11 @@ iLocalDef iFont *characterFont_Font_(iFont *d, iChar ch, uint32_t *glyphIndex) {
636 return sys; 635 return sys;
637 } 636 }
638 } 637 }
639// iFont *font = font_Text_(iosevka_FontId + d->sizeId); 638 /* Final fallback. */
640// *glyphIndex = glyphIndex_Font_(font, ch); 639 iFont *font = font_Text_(iosevka_FontId + d->sizeId);
640 if (d != font) {
641 *glyphIndex = glyphIndex_Font_(font, ch);
642 }
641 if (!*glyphIndex) { 643 if (!*glyphIndex) {
642 fprintf(stderr, "failed to find %08x (%lc)\n", ch, (int)ch); fflush(stderr); 644 fprintf(stderr, "failed to find %08x (%lc)\n", ch, (int)ch); fflush(stderr);
643 } 645 }