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

add 'clockwise' boolean option to control outermost contour direction #31

Closed anthrotype closed 3 years ago

anthrotype commented 3 years ago

Fixes #30

I kept the current behaviour to avoid surprises in existing clients (paths returned after skia operation are always in counter-clockwise by default), but added a new clockwise option to let clients choose clockwise outermost contour direction. To keep existing direction, one can pass the current path.clockwise value.