fontPens
fontPens copied to clipboard
A collection of classes implementing the pen protocol for manipulating glyphs.
Hi! We're receiving a sudden influx of reports on the following test failure on GNU/Linux: ``` =================================== FAILURES =================================== ___________ [doctest] fontPens.penTools.estimateQuadraticCurveLength ___________ 155 156 Estimate the length of this...
those two pens have been added to fontTools 4.2.0: https://github.com/fonttools/fonttools/releases/tag/4.2.0 https://github.com/fonttools/fonttools/pull/1766 @justvanrossum suggested that fontPens package reimports them from there, and fire a deprecation warning.
See @justvanrossum notes in #30
I'm looking into rewriting DigestPointPen by subclassing RecordingPointPen and have some questions. I have fixed #8, and see that Adobe uses the getDigestPointsOnly() method. That simply returns a tuple of...
similar to FlattenPen but splits the curve segment into small curves ```python from fontTools.misc.bezierTools import calcCubicArcLength, splitCubicAtT from fontTools.pens.basePen import BasePen from fontPens.penTools import distance, interpolatePoint class SplittedPen(BasePen): def __init__(self,...
Calling AngledMarginPen with a round shape (see example) causes a traceback. This is a short script that gets to the problem right away. First `self._start` and `self.currentPoint` to are initialised...
@Eigi this will allow for a new version (https://github.com/robotools/fontPens/issues/39#issuecomment-2331739798). On it, but this stuff is always so fiddly....
Please keep the version numbers in sync on tagging.