Skip to content

fontlab_pens.base.DecomposingPen

DecomposingPen

Mixin whose addComponent draws the base glyph onto self as contours.

Missing base glyphs log a warning, or raise MissingComponentError when skipMissingComponents is False. reverseFlipped=True reverses contours of components whose transformation has a negative determinant.

Source bases

Inherited member index

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

  • closePath — defined by fontlab_pens.base.AbstractPen.closePath
  • curveTo — defined by fontlab_pens.base.AbstractPen.curveTo
  • endPath — defined by fontlab_pens.base.AbstractPen.endPath
  • lineTo — defined by fontlab_pens.base.AbstractPen.lineTo
  • log — defined by fontlab_pens.base._LogMixin.log
  • moveTo — defined by fontlab_pens.base.AbstractPen.moveTo
  • qCurveTo — defined by fontlab_pens.base.AbstractPen.qCurveTo

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
MissingComponentError attribute
__init__ function (self, glyphSet: Mapping[str, Any] | None, *args: Any, skipMissingComponents: bool | None=None, reverseFlippe…
addComponent function (self, glyphName, transformation) Transform the points of the base glyph and draw it onto self.
addVarComponent function (self, glyphName, transformation, location, *, resetUnspecifiedAxes=False)
skipMissingComponents attribute