[pointPen] Add addVarComponent to GuessSmoothPointPen

This commit is contained in:
Behdad Esfahbod 2023-02-03 11:17:14 -07:00
parent 284f97670b
commit 11b2427f61

View File

@ -421,6 +421,15 @@ class GuessSmoothPointPen(AbstractPointPen):
kwargs["identifier"] = identifier
self._outPen.addComponent(glyphName, transformation, **kwargs)
def addVarComponent(
self, glyphName, transformation, location, identifier=None, **kwargs
):
if self._points is not None:
raise PenError("VarComponents must be added before or after contours")
if identifier is not None:
kwargs["identifier"] = identifier
self._outPen.addVarComponent(glyphName, transformation, location, **kwargs)
class ReverseContourPointPen(AbstractPointPen):
"""