ttGlyphPen
- class fontTools.pens.ttGlyphPen.TTGlyphPen(glyphSet: Dict[str, Any] | None = None, handleOverflowingTransforms: bool = True, outputImpliedClosingLine: bool = False)[source]
Bases:
_TTGlyphBasePen
,LoggingPen
Pen used for drawing to a TrueType glyph.
This pen can be used to construct or modify glyphs in a TrueType format font. After using the pen to draw, use the
.glyph()
method to retrieve aGlyph
object representing the glyph.- drawMethod = 'draw'
- transformPen
alias of
TransformPen
- class fontTools.pens.ttGlyphPen.TTGlyphPointPen(glyphSet: Dict[str, Any] | None, handleOverflowingTransforms: bool = True)[source]
Bases:
_TTGlyphBasePen
,LogMixin
,AbstractPointPen
Point pen used for drawing to a TrueType glyph.
This pen can be used to construct or modify glyphs in a TrueType format font. After using the pen to draw, use the
.glyph()
method to retrieve aGlyph
object representing the glyph.- drawMethod = 'drawPoints'
- transformPen
alias of
TransformPointPen