fonttools / skia-pathops

Python bindings for the Skia library's Path Ops
https://skia.org/docs/dev/present/pathops/
BSD 3-Clause "New" or "Revised" License
47 stars 14 forks source link

make PathPen curveTo/qCurveTo accept variable number of points #63

Closed anthrotype closed 1 year ago

anthrotype commented 1 year ago

When constructing a pathops.Path using the PathPen, we should handle variable number of point arguments to curveTo and qCurveTo methods, following fontTools' BasePen which is the blueprint of all segment-based pens.

https://github.com/fonttools/fonttools/blob/35856412485bce4a1e6c08cceb52c7a87c75c4ee/Lib/fontTools/pens/basePen.py#L274-L329

as well as the UFO GLIF spec: https://github.com/unified-font-object/ufo-spec/issues/211

Should fix => https://github.com/googlefonts/ufo2ft/issues/468#issuecomment-1311574944