mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 00:11:14 +01:00
[VarComposite] Minor move code
This commit is contained in:
1 parent
9b5afad493
commit
83bbeaca20
1 file changed
+2
-3
@@ -201,6 +201,8 @@ struct VarCompositeGlyphRecord
|
||||
unsigned num_axes = numAxes;
|
||||
|
||||
if (unlikely (!points.resize (points.length + num_points, false))) return false;
|
||||
contour_point_t *rec_points = points.as_array ().sub_array (points.length - num_points).arrayZ;
|
||||
memset (rec_points, 0, num_points * sizeof (rec_points[0]));
|
||||
|
||||
unsigned axis_width = (fl & AXIS_INDICES_ARE_SHORT) ? 2 : 1;
|
||||
unsigned axes_size = num_axes * axis_width;
|
||||
@@ -209,9 +211,6 @@ struct VarCompositeGlyphRecord
|
||||
(fl & GID_IS_24BIT ? 3 : 2) +
|
||||
&StructAfter<const HBUINT8> (numAxes));
|
||||
|
||||
contour_point_t *rec_points = points.as_array ().sub_array (points.length - num_points).arrayZ;
|
||||
memset (rec_points, 0, num_points * sizeof (rec_points[0]));
|
||||
|
||||
unsigned count = num_axes;
|
||||
if (fl & AXES_HAVE_VARIATION)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user