Skip to content

fontlab_pens.point.PointToSegmentPen

PointToSegmentPen

Adapts the point-pen protocol to a segment pen (drops names and kwargs).

A closed contour's final line back to the start is implied and omitted, unless outputImpliedClosingLine is set or the last point duplicates the start (then the line is kept so the duplicate point survives).

Source bases

Inherited member index

Source-proven inherited members; local declarations override these entries.

  • addPoint — defined by fontlab_pens.point.BasePointToSegmentPen.addPoint
  • addVarComponent — defined by fontlab_pens.point.AbstractPointPen.addVarComponent
  • beginPath — defined by fontlab_pens.point.BasePointToSegmentPen.beginPath
  • endPath — defined by fontlab_pens.point.BasePointToSegmentPen.endPath

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
__init__ function (self, segmentPen: AbstractPen, outputImpliedClosingLine: bool=False) -> None
addComponent function (self, glyphName, transform, identifier=None, **kwargs)