fontlab_pens.fontgate.FontGatePointPen · declarations 001
Back to fontlab_pens.fontgate.FontGatePointPen
__exit__
__exit__(exc_type: type[BaseException] | None, exc: BaseException | None, tb: TracebackType | None) -> None
Close on success; on an exception drop the open contour and close.
FontGate writes each contour at its endPath, so contours finished
before the exception stay written (unlike FlPointPen, which stages
until close). The exception is never swallowed.
__init__
__init__(target: Any, *, native: Any = None, kind: str | None = None) -> None
addComponent
addComponent(baseGlyphName: str, transformation: tuple, identifier: str | None = None, **kwargs: Any) -> None
beginPath
beginPath(identifier: str | None = None, **kwargs: Any) -> None
close
close() -> None
End the session; contours were already written at each endPath.
Raises PenError for an unfinished contour, like FlPointPen.close.
Closing twice is harmless; drawing after close raises PenError.