mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-03 20:10:08 +03:00
fix face reference for missing glyphs with Raqm layout
This commit is contained in:
parent
cbbd9bd27d
commit
5aab9065a6
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user