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

See:
https://github.com/harfbuzz/harfbuzz/pull/3411#discussion_r804988217
This commit is contained in:
Behdad Esfahbod 2022-02-11 14:42:15 -06:00
parent 0e357c504c
commit 0858463ac3
1 changed files with 0 additions and 4 deletions

View File

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