Clear output buffer before calling GSUB pause functions

This commit is contained in:
Behdad Esfahbod 2012-06-08 20:21:02 -04:00
parent cafa6f3727
commit 77471e0371
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ void hb_ot_map_t::apply (unsigned int table_index,
for (; i < pause->num_lookups; i++)
apply_lookup_func (face_or_font, buffer, lookups[table_index][i].index, lookups[table_index][i].mask);
if (table_index == 0)
buffer->clear_output ();
pause->callback.func (this, face_or_font, buffer, pause->callback.user_data);
}