fix face reference for missing glyphs with Raqm layout

This commit is contained in:
nulano 2023-02-02 16:57:31 +00:00 committed by Nulano
parent cbbd9bd27d
commit 5aab9065a6

View File

@ -626,8 +626,7 @@ text_layout_raqm(
if (fallback && fallback[cluster] >= 0) {
(*glyph_info)[i].face = family->faces[fallback[cluster]];
} else {
/* FIXME use first font's missing glyph, not last font's */
(*glyph_info)[i].face = family->faces[family->font_count - 1];
(*glyph_info)[i].face = family->faces[0];
}
}