diff --git a/src/pixie/fontformats/opentype.nim b/src/pixie/fontformats/opentype.nim index d47ac2b..2c2f05a 100644 --- a/src/pixie/fontformats/opentype.nim +++ b/src/pixie/fontformats/opentype.nim @@ -649,6 +649,8 @@ proc parseGlyphPath(buf: string, offset, numberOfContours: int): Path = x = buf.readInt16(i).swap().int i += 2 prevX += x + if point >= points.len: + failUnsupported() points[point].x = prevX.float32 points[point].isOnCurve = (flag and 1) != 0