[kb] Clear buffer out flags and stuff

This commit is contained in:
Behdad Esfahbod committed 2025-07-23 17:12:31 -06:00
1 parent 0c3606b513
commit fc671f0e89
1 file changed
+6
+6
View File
@@ -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;
}