Skip to content

fontlab_pens.StagingPointPen

fontlab_pens.StagingPointPen

Collect a contour, validate it as pen geometry, then hand it to append_contour.

Nothing reaches the native side until the whole contour is known to be valid, so a malformed contour never leaves partial native data behind. Subclasses implement append_contour (called only with validated points) and addComponent, which should start with check_component.

Source bases

Inherited member index

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

  • addComponent — defined by fontlab_pens.point.AbstractPointPen.addComponent
  • addVarComponent — defined by fontlab_pens.point.AbstractPointPen.addVarComponent

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) -> None
addPoint function (self, pt: tuple[float, float], segmentType: str | None=None, smooth: bool=False, name: str | None=None, iden…
append_contour function (self, points: list[StagedPoint]) -> None Store one validated, non-empty contour; endPath calls it.
beginPath function (self, identifier: str | None=None, **kwargs: Any) -> None
check_component function (self, transformation: Any, identifier: str | None=None) -> tuple Refuse identifiers and components inside a contour; return the 6-value matrix.
endPath function (self) -> None