mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
[old] Clear offset array
This commit is contained in:
1 parent
9433c218b4
commit
5d502443f5
1 file changed
+3
@@ -337,6 +337,9 @@ retry:
|
||||
ALLOCATE_ARRAY (HB_GlyphAttributes, item.attributes, num_glyphs);
|
||||
ALLOCATE_ARRAY (HB_Fixed, item.advances, num_glyphs);
|
||||
ALLOCATE_ARRAY (HB_FixedPoint, item.offsets, num_glyphs);
|
||||
/* Apparently in some cases the offsets array will not be fully assigned to.
|
||||
* Clear it. */
|
||||
memset (item.offsets, 0, num_glyphs * sizeof (item.offsets[0]));
|
||||
uint32_t *vis_clusters;
|
||||
ALLOCATE_ARRAY (uint32_t, vis_clusters, num_glyphs);
|
||||
|
||||
|
||||
Reference in new issue
Block a user