Skip to content

fontlab_pens.base.BasePen

BasePen

Base class for drawing pens.

Override _moveTo, _lineTo and _curveToOne; optionally _closePath, _endPath, _qCurveToOne and addComponent. Do not override the public drawing methods: they track the current point and split compound segments.

Source bases

Inherited member index

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

  • MissingComponentError — defined by fontlab_pens.base.DecomposingPen.MissingComponentError
  • addComponent — defined by fontlab_pens.base.DecomposingPen.addComponent
  • addVarComponent — defined by fontlab_pens.base.DecomposingPen.addVarComponent
  • log — defined by fontlab_pens.base._LogMixin.log
  • skipMissingComponents — defined by fontlab_pens.base.DecomposingPen.skipMissingComponents

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, glyphSet: Mapping[str, Any] | None=None) -> None
closePath function (self)
curveTo function (self, *points)
endPath function (self)
lineTo function (self, pt)
moveTo function (self, pt)
qCurveTo function (self, *points)