mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 11:35:42 +02:00
font: don't try to do fontconfig fallback on a fallback font
This commit is contained in:
parent
274255f9ab
commit
4e73ec669b
1 changed files with 3 additions and 0 deletions
3
font.c
3
font.c
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Reference in a new issue