diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-29 07:14:18 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-29 07:14:18 +0300 |
commit | 18e590f1fd50397004113804bf1218656119d41f (patch) | |
tree | 497f27827c0491cd8a92615bfb31a8152d043278 /src/ui | |
parent | f6631662e4be834ff79cf6b7304cb31160aab4ff (diff) |
Text: Use Iosevka as final fallback font
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/text.c | 8 |
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 | } |