font: don't try to do fontconfig fallback on a fallback font

This commit is contained in:
Daniel Eklöf 2019-09-22 12:44:08 +02:00
parent 274255f9ab
commit 4e73ec669b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

3
font.c
View file

@ -326,6 +326,9 @@ glyph_for_wchar(const struct font *font, wchar_t wc, struct glyph *glyph)
FT_UInt idx = FT_Get_Char_Index(font->face, wc); FT_UInt idx = FT_Get_Char_Index(font->face, wc);
if (idx == 0) { if (idx == 0) {
if (font->is_fallback)
return false;
/* No glyph in this font, try fontconfig fallback fonts */ /* No glyph in this font, try fontconfig fallback fonts */
/* Try fontconfig fallback fonts */ /* Try fontconfig fallback fonts */