summaryrefslogtreecommitdiff
path: root/src/ui/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/text.c')
-rw-r--r--src/ui/text.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 6aaf40f5..b4401abb 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -331,6 +331,7 @@ static void initFonts_Text_(iText *d) {
331 DEFINE_FONT_SET(fontNotoSansJPRegular_Embedded), 331 DEFINE_FONT_SET(fontNotoSansJPRegular_Embedded),
332 DEFINE_FONT_SET(fontNotoSansSCRegular_Embedded), 332 DEFINE_FONT_SET(fontNotoSansSCRegular_Embedded),
333 DEFINE_FONT_SET(fontNanumGothicRegular_Embedded), /* TODO: should use Noto Sans here, too */ 333 DEFINE_FONT_SET(fontNanumGothicRegular_Embedded), /* TODO: should use Noto Sans here, too */
334 DEFINE_FONT_SET(fontNotoSansArabicUIRegular_Embedded),
334 }; 335 };
335 iForIndices(i, fontData) { 336 iForIndices(i, fontData) {
336 iFont *font = &d->fonts[i]; 337 iFont *font = &d->fonts[i];
@@ -584,6 +585,13 @@ iLocalDef iFont *characterFont_Font_(iFont *d, iChar ch, uint32_t *glyphIndex) {
584 return japanese; 585 return japanese;
585 } 586 }
586 } 587 }
588 /* Maybe Arabic. */
589 if (ch >= 0x600) {
590 iFont *arabic = font_Text_(arabic_FontId + d->sizeId);
591 if (arabic != d && (*glyphIndex = glyphIndex_Font_(arabic, ch)) != 0) {
592 return arabic;
593 }
594 }
587#if defined (iPlatformApple) 595#if defined (iPlatformApple)
588 /* White up arrow is used for the Shift key on macOS. Symbola's glyph is not a great 596 /* White up arrow is used for the Shift key on macOS. Symbola's glyph is not a great
589 match to the other text, so use the UI font instead. */ 597 match to the other text, so use the UI font instead. */