diff --git a/src/ufoLib2/objects/glyph.py b/src/ufoLib2/objects/glyph.py index aba28b7d..6fe152e6 100644 --- a/src/ufoLib2/objects/glyph.py +++ b/src/ufoLib2/objects/glyph.py @@ -355,10 +355,12 @@ def move(self, delta: tuple[float, float]) -> None: # Pen methods # ----------- - def draw(self, pen: AbstractPen) -> None: + def draw(self, pen: AbstractPen, outputImpliedClosingLine: bool = False) -> None: """Draws glyph into given pen.""" # TODO: Document pen interface more or link to somewhere. - pointPen = PointToSegmentPen(pen) + pointPen = PointToSegmentPen( + pen, outputImpliedClosingLine=outputImpliedClosingLine + ) self.drawPoints(pointPen) def drawPoints(self, pointPen: AbstractPointPen) -> None: