2024-09-17 17:36:33 +01:00

52 lines
1.2 KiB
ReStructuredText

###########################################
pens: Inspect and manipulate glyph outlines
###########################################
.. rubric:: Overview:
:heading-level: 3
The fontTools **pens** are a collection of classes that can operate
on a font glyph via the points and the contours of the glyph's outlines.
Some pens trace through the outlines and generate graphical output,
such as a new glyph outline or a formatted image, but other
pens analyze the outlines and return information about the glyph.
Pens that alter or produce a pen-compatible :class:`.ttGlyph` object can
be chained together.
New pens can be written by sub-classing the :class:`.AbstractPen` or,
somewhat more practically, :class:`.BasePen` classes. The Pen Protocol is
documented on the :ref:`basePen` page.
.. rubric:: Pen modules:
:heading-level: 3
.. toctree::
:maxdepth: 1
areaPen
basePen
boundsPen
cocoaPen
cu2quPen
filterPen
freetypePen
momentsPen
perimeterPen
pointInsidePen
pointPen
qtPen
recordingPen
reportLabPen
reverseContourPen
roundingPen
statisticsPen
svgPathPen
t2CharStringPen
teePen
transformPen
ttGlyphPen
wxPen