fontlab_pens.base.AbstractPen · declarations 001
Back to fontlab_pens.base.AbstractPen
addComponent
addComponent(glyphName: str, transformation: TransformLike) -> None
Add a sub glyph with a 6-number affine transformation.
addVarComponent
addVarComponent(glyphName: str, transformation: Any, location: dict[str, float], *, resetUnspecifiedAxes: bool = False) -> None
Add a variable component; glyph sets decompose these, so pens raise.
closePath
closePath() -> None
Close the current sub path.
curveTo
curveTo(*points: Point) -> None
Draw a cubic bezier; more than two off-curves form a super-bezier.
endPath
endPath() -> None
End the current sub path without closing it.
qCurveTo
qCurveTo(*points: Point | None) -> None
Draw a TrueType quadratic string; the last point may be None.