diff --git a/Lib/fontTools/pens/recordingPen.py b/Lib/fontTools/pens/recordingPen.py index 5272360ea..6c3b66132 100644 --- a/Lib/fontTools/pens/recordingPen.py +++ b/Lib/fontTools/pens/recordingPen.py @@ -102,9 +102,6 @@ class DecomposingRecordingPen(DecomposingPen, RecordingPen): b: [('moveTo', ((-1, 1),)), ('curveTo', ((0, 2), (1, 3), (2, 4))), ('closePath', ())] """ - def addVarComponent(self, glyphName, transformation, location): - raise NotImplementedError - # raises KeyError if base glyph is not found in glyphSet skipMissingComponents = False diff --git a/Lib/fontTools/ttLib/ttGlyphSet.py b/Lib/fontTools/ttLib/ttGlyphSet.py index fe1d1722c..ab3688e6e 100644 --- a/Lib/fontTools/ttLib/ttGlyphSet.py +++ b/Lib/fontTools/ttLib/ttGlyphSet.py @@ -194,7 +194,7 @@ class _TTGlyphGlyf(_TTGlyph): pen.addVarComponent( comp.glyphName, comp.transform, self.glyphSet.rawLocation ) - except (NotImplementedError, AttributeError): + except AttributeError: t = comp.transform.toTransform() if isPointPen: tPen = TransformPointPen(pen, t)