From 0858463ac3e4db60c339e85061f3c9e8ab81ee0a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 11 Feb 2022 14:42:15 -0600 Subject: [PATCH] [draw/glyf] Don't skip empty contours of size 2 See: https://github.com/harfbuzz/harfbuzz/pull/3411#discussion_r804988217 --- src/hb-ot-glyf-table.hh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/hb-ot-glyf-table.hh b/src/hb-ot-glyf-table.hh index 29402ecab..dee465a6b 100644 --- a/src/hb-ot-glyf-table.hh +++ b/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)