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

[checkoutlinesufo] Fix restore_contour_order fail #1296

Merged
merged 2 commits into from
Feb 5, 2021

Conversation

kaydeearts
Copy link
Collaborator

Fixes #1291

Copy link
Collaborator

@josh-hadley josh-hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test case that checks for the Warning message when checkoutlinesufo is run on contour-restore.ufo? The current test case that uses that file doesn't hit this code (no warning is emitted) because it uses the ignore-contour-order flag.

You can probably just copy that case (test_ignore_contour_order) but remove the =ignore-contour-order from the options to runner(). Basically just reproduce the command @punchcutter mentions in #1291 and verify that the new Warning message is emitted ("Warning: duplicated start point on contour 3 at 616, 597 of glyph cid51107.").

Copy link
Collaborator

@josh-hadley josh-hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good, thanks!

@kaydeearts kaydeearts merged commit 2559976 into develop Feb 5, 2021
@kaydeearts kaydeearts deleted the kd_checkoutlinesufo_bug1291 branch February 5, 2021 18:04
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.

[checkoutlinesufo] restore_contour_order fails in some situations
2 participants