reverseContourPen
- fontTools.pens.reverseContourPen.reversedContour(contour, outputImpliedClosingLine=False)[source]
Generator that takes a list of pen’s (operator, operands) tuples, and yields them with the winding direction reversed.
- class fontTools.pens.reverseContourPen.ReverseContourPen(outPen, outputImpliedClosingLine=False)[source]
Bases:
ContourFilterPen
Filter pen that passes outline data to another pen, but reversing the winding direction of all contours. Components are simply passed through unchanged.
Closed contours are reversed in such a way that the first point remains the first point.