summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-29 07:14:18 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-29 07:14:18 +0300
commit18e590f1fd50397004113804bf1218656119d41f (patch)
tree497f27827c0491cd8a92615bfb31a8152d043278 /src/ui
parentf6631662e4be834ff79cf6b7304cb31160aab4ff (diff)
Text: Use Iosevka as final fallback font
Diffstat (limited to 'src/ui')
-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 }