[glyf/SimpleGlyph] Minor use constructor for contour_point_t

This commit is contained in:
Behdad Esfahbod 2022-06-25 19:24:05 -06:00
parent f897978f21
commit 9ce9773040
2 changed files with 4 additions and 4 deletions

View File

@ -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++)

View File

@ -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>