[ot] Don't mirror character if font doesn't support mirrored character!

This commit is contained in:
Behdad Esfahbod 2015-07-22 15:24:26 +01:00
parent 97d7c3a100
commit 7b8b63adc5
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ hb_ot_mirror_chars (hb_ot_shape_context_t *c)
hb_glyph_info_t *info = buffer->info;
for (unsigned int i = 0; i < count; i++) {
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;
else
info[i].codepoint = codepoint;