[glyf/SimpleGlyph] Minor use constructor for contour_point_t
This commit is contained in:
parent
f897978f21
commit
9ce9773040
|
@ -159,7 +159,6 @@ struct SimpleGlyph
|
|||
unsigned int num_points = endPtsOfContours[num_contours - 1] + 1;
|
||||
|
||||
points_.resize (num_points);
|
||||
for (unsigned int i = 0; i < points_.length; i++) points_[i].init ();
|
||||
if (phantom_only) return true;
|
||||
|
||||
for (int i = 0; i < num_contours; i++)
|
||||
|
|
|
@ -45,9 +45,10 @@ struct contour_point_t
|
|||
|
||||
void translate (const contour_point_t &p) { x += p.x; y += p.y; }
|
||||
|
||||
uint8_t flag;
|
||||
float x, y;
|
||||
bool is_end_point;
|
||||
uint8_t flag = 0;
|
||||
float x = 0.f;
|
||||
float y = 0.f;
|
||||
bool is_end_point = false;
|
||||
};
|
||||
|
||||
struct contour_point_vector_t : hb_vector_t<contour_point_t>
|
||||
|
|
Loading…
Reference in New Issue