fonttools / fontbakery

🧁 A font quality assurance tool for everyone
https://fontbakery.readthedocs.io
Apache License 2.0
534 stars 99 forks source link

Fix outermost path detection #4724

Closed simoncozens closed 1 month ago

simoncozens commented 1 month ago

Description

Relates to issue #4719 and https://github.com/googlefonts/fontmake/issues/1093

The code which detects the outermost contour assumed that later paths would be contained within earlier paths, which is of course rubbish. Paths can be in any order they like, so we have to do the O(n^2) thing to find the outermost ones.

Checklist

yanone commented 1 month ago

This works for Bitter. Thank you.