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

pull/122/head
Behdad Esfahbod 9 years ago
parent 97d7c3a100
commit 7b8b63adc5
  1. 2
      src/hb-ot-shape.cc

@ -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;

Loading…
Cancel
Save