Skip to content

fontlab_pens

Overview, install and quick start: Pens guide.

fontlab_pens

fontTools-compatible Pen and PointPen protocol for FontLab, with no dependencies.

The selected implemented APIs use the class and function names of fontTools.pens, with parity tests for protocol-compatible calls. This is not the complete fontTools pen API set; see README for included and unported APIs. The native pens (FontGatePointPen, FlPointPen and friends) target layers and elements and import fontgate/fontlab lazily, so importing this package works anywhere. Their readers live in fontlab_pens.fontgate and fontlab_pens.fontlab (draw_points, draw).

Modules