[ot] Don't mirror character if font doesn't support mirrored character!
This commit is contained in:
parent
97d7c3a100
commit
7b8b63adc5
|
@ -305,7 +305,7 @@ hb_ot_mirror_chars (hb_ot_shape_context_t *c)
|
||||||
hb_glyph_info_t *info = buffer->info;
|
hb_glyph_info_t *info = buffer->info;
|
||||||
for (unsigned int i = 0; i < count; i++) {
|
for (unsigned int i = 0; i < count; i++) {
|
||||||
hb_codepoint_t codepoint = unicode->mirroring (info[i].codepoint);
|
hb_codepoint_t codepoint = unicode->mirroring (info[i].codepoint);
|
||||||
if (likely (codepoint == info[i].codepoint))
|
if (likely (codepoint == info[i].codepoint || !c->font->has_glyph (codepoint)))
|
||||||
info[i].mask |= rtlm_mask;
|
info[i].mask |= rtlm_mask;
|
||||||
else
|
else
|
||||||
info[i].codepoint = codepoint;
|
info[i].codepoint = codepoint;
|
||||||
|
|
Loading…
Reference in New Issue