From 77471e037122548bfc08cacea6fbb472831c34f3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 8 Jun 2012 20:21:02 -0400 Subject: [PATCH] Clear output buffer before calling GSUB pause functions --- src/hb-ot-map.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-ot-map.cc b/src/hb-ot-map.cc index bebf3ed74..d34160c55 100644 --- a/src/hb-ot-map.cc +++ b/src/hb-ot-map.cc @@ -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); }