Skip to content

Conversation

@swhitty
Copy link
Owner

@swhitty swhitty commented Nov 15, 2023

This PR fixes a bug within the autowinding of subpaths for SFSymbols that I believe has always existed but was amplified by
#33.

When paths are winded, they need to be sorted into a trees to calculate which paths are "inside" other paths. The sorting code was previously relying on the outer paths being added to the tree first, the algorithm now checks if the new node should be swapped with an existing node.

Resolves #32

@swhitty swhitty merged commit d7f58f9 into main Nov 15, 2023
@swhitty swhitty deleted the fix-winding branch November 15, 2023 07:29
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.

SFSymbols generation mismatch to original SVG

2 participants