Skip to content

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.

lineTo

lineTo(pt: Point) -> None

Draw a straight line from the current point to pt.

moveTo

moveTo(pt: Point) -> None

Begin a new sub path at pt; end it with closePath or endPath.

qCurveTo

qCurveTo(*points: Point | None) -> None

Draw a TrueType quadratic string; the last point may be None.