Skip to content

Fix GSPath.reverse for open paths#1147

Merged
cmyr merged 1 commit intogooglefonts:mainfrom
cmyr:reverse-open-contour
Apr 15, 2026
Merged

Fix GSPath.reverse for open paths#1147
cmyr merged 1 commit intogooglefonts:mainfrom
cmyr:reverse-open-contour

Conversation

@cmyr
Copy link
Copy Markdown
Member

@cmyr cmyr commented Apr 15, 2026

As written this would drop the final node, which in a closed path would be a duplicate but which is meaningful in an open path.

This limits the fix to just the 'reverse' call, but it looks like setSegments has this bug in general.

cc @anthrotype, this would match googlefonts/fontc#1956

As written this would drop the final node, which in a closed path would
be a duplicate but which is meaningful in an open path.

This limits the fix to just the 'reverse' call, but it looks like
setSegments has this bug in general.
@cmyr cmyr merged commit 67ae285 into googlefonts:main Apr 15, 2026
8 checks passed
@cmyr cmyr deleted the reverse-open-contour branch April 15, 2026 18:42
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.

2 participants