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

decompose components in PathPen; raise error when no glyphSet provided #32

Closed anthrotype closed 4 years ago

anthrotype commented 4 years ago

Fixes #29

Adds a new glyphSet=None parameter to the Path.getPen method (and to the PathPen constructor), which will be used to decompose components when the pen.addComponent() method is called. If no glyphSet is provided (default), then calling the pen.addComponent will raise TypeError. We will no longer silently ignore/drop components. We may add an option to do that if/when need arise.