Skip GPOS cursive / attachment adjustmnent if none happened

I'm starting to really like how free these new scratch_flags are.
This commit is contained in:
Behdad Esfahbod 2015-11-04 22:42:41 -08:00
parent 0f407325f6
commit ff31b3c1b8
1 changed files with 3 additions and 0 deletions

View File

@ -1602,6 +1602,9 @@ GPOS::position_finish (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer)
for (unsigned int i = 0; i < len; i++)
fix_cursive_minor_offset (pos, i, direction);
if (!(buffer->scratch_flags & HB_BUFFER_SCRATCH_FLAG_HAS_NON_ASCII))
return;
/* Handle attachments */
for (unsigned int i = 0; i < len; i++)
fix_mark_attachment (pos, i, direction);