From fc671f0e898e2ac65313e1bd3076f9ee7ea60a7e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 23 Jul 2025 17:12:31 -0600 Subject: [PATCH] [kb] Clear buffer out flags and stuff --- src/hb-kbts.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hb-kbts.cc b/src/hb-kbts.cc index e0d903889..6037a1d2f 100644 --- a/src/hb-kbts.cc +++ b/src/hb-kbts.cc @@ -218,7 +218,10 @@ _hb_kbts_shape (hb_shape_plan_t *shape_plan, return false; } + hb_buffer_clear_contents (buffer); + hb_buffer_set_content_type (buffer, HB_BUFFER_CONTENT_TYPE_GLYPHS); hb_buffer_set_length (buffer, glyph_count); + hb_glyph_info_t *info = buffer->info; hb_glyph_position_t *pos = buffer->pos; @@ -239,6 +242,9 @@ _hb_kbts_shape (hb_shape_plan_t *shape_plan, hb_free (kb_shape_state); + buffer->clear_glyph_flags (); + buffer->unsafe_to_break (); + return true; }