mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[harfruzz] Clear buffer before populating results
This commit is contained in:
1 parent
bb31aac07b
commit
2e9b431501
1 file changed
+1
@@ -235,6 +235,7 @@ pub unsafe extern "C" fn _hb_harfruzz_shape_rs(
|
||||
};
|
||||
|
||||
let count = glyphs.len();
|
||||
hb_buffer_set_length(buffer, 0u32);
|
||||
hb_buffer_set_content_type(
|
||||
buffer,
|
||||
hb_buffer_content_type_t_HB_BUFFER_CONTENT_TYPE_GLYPHS,
|
||||
|
||||
Reference in new issue
Block a user