Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix outermost path detection #4724

Merged
merged 3 commits into from
May 17, 2024
Merged

Fix outermost path detection #4724

merged 3 commits into from
May 17, 2024

Conversation

simoncozens
Copy link
Collaborator

@simoncozens simoncozens commented May 16, 2024

Description

Relates to issue #4719 and googlefonts/fontmake#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

  • update CHANGELOG.md
  • wait for the tests to pass
  • request a review

@yanone
Copy link
Collaborator

yanone commented May 16, 2024

This works for Bitter. Thank you.

@felipesanches felipesanches merged commit 7fdfa31 into main May 17, 2024
112 checks passed
@khaledhosny khaledhosny deleted the fix-outline-check branch May 22, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants