[draw/glyf] Don't skip empty contours of size 2

See:
https://github.com/harfbuzz/harfbuzz/pull/3411#discussion_r804988217
pull/3411/head
Behdad Esfahbod 3 years ago
parent 0e357c504c
commit 0858463ac3
  1. 4
      src/hb-ot-glyf-table.hh

@ -1183,10 +1183,6 @@ struct glyf
* https://stackoverflow.com/a/20772557 */
void consume_point (const contour_point_t &point)
{
/* Skip empty contours */
if (unlikely (point.is_end_point && !first_oncurve.has_data && !first_offcurve.has_data))
return;
bool is_on_curve = point.flag & Glyph::FLAG_ON_CURVE;
optional_point_t p (point.x, point.y);
if (!first_oncurve.has_data)

Loading…
Cancel
Save