_set_segments must now handle 'curveTo' segments as well

since we let them pass now, and we only stop at the end
This commit is contained in:
Cosimo Lupo 2018-01-18 14:33:49 +00:00
parent af4d7abb63
commit 0b41ba3521
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482

View File

@ -113,6 +113,8 @@ def _set_segments(glyph, segments, reverse_direction):
pen.moveTo(*args)
elif tag == 'line':
pen.lineTo(*args)
elif tag == 'curve':
pen.curveTo(*args[1:])
elif tag == 'qcurve':
pen.qCurveTo(*args[1:])
elif tag == 'close':