Cosimo Lupo 855166c518
cu2qu/ufo: must use PointToSegmentPen with outputImpliedClosingLine=True
When collecting a glyph's segments, we can't simply call the glyphs' draw
method with the GetSegmentsPen, but we must initialize the
PointToSegmentPen explicitly with outputImpliedClosingLine=True.

By default PointToSegmentPen does not outputImpliedClosingLine -- unless
last and first point on closed contour are duplicated.

Because we are converting multiple glyphs at the same time, we want to
make sure the _get_segments function returns the same number of segments,
whether or not the last and first point overlap.

Fixes https://github.com/googlefonts/fontmake/issues/572

Also see: https://github.com/fonttools/fonttools/pull/1720
2019-09-13 13:14:03 +02:00
..
2018-10-09 09:57:15 -04:00