From fbffd4e65e65843ab149c43df417882fe08683d9 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 30 Apr 2023 10:45:19 -0600 Subject: [PATCH] [SimpleGlyph] Handle cubic curves when instancing --- src/OT/glyf/SimpleGlyph.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OT/glyf/SimpleGlyph.hh b/src/OT/glyf/SimpleGlyph.hh index 9bf168595..555bcee34 100644 --- a/src/OT/glyf/SimpleGlyph.hh +++ b/src/OT/glyf/SimpleGlyph.hh @@ -291,7 +291,7 @@ struct SimpleGlyph for (unsigned i = 0; i < num_points; i++) { unsigned flag = all_points.arrayZ[i].flag; - flag &= FLAG_ON_CURVE + FLAG_OVERLAP_SIMPLE; + flag &= FLAG_ON_CURVE | FLAG_OVERLAP_SIMPLE | FLAG_CUBIC; int cur_x = roundf (all_points.arrayZ[i].x); int cur_y = roundf (all_points.arrayZ[i].y);