mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[kb] Clear buffer out flags and stuff
This commit is contained in:
1 parent
0c3606b513
commit
fc671f0e89
1 file changed
+6
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user