Skip to content

fontlab_pens.fontlab.FlPointPen

FlPointPen

Point pen that writes validated contours into an flLayer or an flShape.

native is a namespace with flNode, flContour, flShape, flItems, QPointF and QTransform (loaded from FontLab when omitted). Writing into an element maps coordinates through the inverse of shape.transform, so draw_points on the same element reads them back. After close() the pen is spent: any further write raises PenError.

Source bases

Inherited member index

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

  • addPoint — defined by fontlab_pens._native.StagingPointPen.addPoint
  • addVarComponent — defined by fontlab_pens.point.AbstractPointPen.addVarComponent
  • check_component — defined by fontlab_pens._native.StagingPointPen.check_component
  • endPath — defined by fontlab_pens._native.StagingPointPen.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
__enter__ function (self) -> Self (shared captured text)
__exit__ function (self, exc_type: type[BaseException] | None, exc: BaseException | None, tb: TracebackType | None) -> None
__init__ function (self, target: Any, *, native: Any=None, notify: str | None=None) -> None
addComponent function (self, baseGlyphName: str, transformation: tuple, identifier: str | None=None, **kwargs: Any) -> None
append_contour function (self, points: list[StagedPoint]) -> None
beginPath function (self, identifier: str | None=None, **kwargs: Any) -> None
close function (self) -> None Attempt the staged writes once; enrolled history is finalized on failure too.