Don't try zeroing mark attachments by Unicode if there's no non-ASCII

pull/158/merge
Behdad Esfahbod 9 years ago
parent 550bd14d2b
commit 7fa54ed75a
  1. 3
      src/hb-ot-shape.cc

@ -621,6 +621,9 @@ zero_mark_width (hb_glyph_position_t *pos)
static inline void static inline void
zero_mark_widths_by_unicode (hb_buffer_t *buffer, bool adjust_offsets) zero_mark_widths_by_unicode (hb_buffer_t *buffer, bool adjust_offsets)
{ {
if (!(buffer->scratch_flags & HB_BUFFER_SCRATCH_FLAG_HAS_NON_ASCII))
return;
unsigned int count = buffer->len; unsigned int count = buffer->len;
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++)

Loading…
Cancel
Save