|
|
@ -279,7 +279,7 @@ hb_ot_mirror_chars (hb_ot_shape_context_t *c) |
|
|
|
for (unsigned int i = 0; i < count; i++) { |
|
|
|
for (unsigned int i = 0; i < count; i++) { |
|
|
|
hb_codepoint_t codepoint = unicode->mirroring (c->buffer->info[i].codepoint); |
|
|
|
hb_codepoint_t codepoint = unicode->mirroring (c->buffer->info[i].codepoint); |
|
|
|
if (likely (codepoint == c->buffer->info[i].codepoint)) |
|
|
|
if (likely (codepoint == c->buffer->info[i].codepoint)) |
|
|
|
c->buffer->info[i].mask |= rtlm_mask; /* TODO this should be moved to before setting user-feature masks */ |
|
|
|
c->buffer->info[i].mask |= rtlm_mask; |
|
|
|
else |
|
|
|
else |
|
|
|
c->buffer->info[i].codepoint = codepoint; |
|
|
|
c->buffer->info[i].codepoint = codepoint; |
|
|
|
} |
|
|
|
} |
|
|
@ -313,9 +313,6 @@ hb_ot_map_glyphs (hb_font_t *font, |
|
|
|
{ |
|
|
|
{ |
|
|
|
hb_codepoint_t glyph; |
|
|
|
hb_codepoint_t glyph; |
|
|
|
|
|
|
|
|
|
|
|
if (unlikely (!buffer->len)) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buffer->clear_output (); |
|
|
|
buffer->clear_output (); |
|
|
|
|
|
|
|
|
|
|
|
unsigned int count = buffer->len - 1; |
|
|
|
unsigned int count = buffer->len - 1; |
|
|
|