mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-04 04:20:10 +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) {
|
if (fallback && fallback[cluster] >= 0) {
|
||||||
(*glyph_info)[i].face = family->faces[fallback[cluster]];
|
(*glyph_info)[i].face = family->faces[fallback[cluster]];
|
||||||
} else {
|
} else {
|
||||||
/* FIXME use first font's missing glyph, not last font's */
|
(*glyph_info)[i].face = family->faces[0];
|
||||||
(*glyph_info)[i].face = family->faces[family->font_count - 1];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user