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, ufotools] improve overlap removal, error messages #1170

Merged
merged 4 commits into from
Jun 16, 2020

Conversation

josh-hadley
Copy link
Collaborator

  • modify check for contour starts (base contour indices on original glyph, not fixed glyph)
  • update thresholdAttrGlyph method: don't try to "fix" smooth points, use threshold of 0.5 N.B. this change causes changes to test data w/r/t smoothed points
  • update to use ufoVersionFormatTuple consistently throughout module
  • improve messaging for KeyError and failed assertion in overlap removal/contour renumbering scheme

- set `ctr_starts` dict based on contours of `fixed_glyph` to avoid IndexError for some cases
- set threshold to 0.5
- abandon attempt to re-set `smooth="yes"`
- update checkoutlines and makeinstances tests that were affected by smooth logic
- use ufoFormatVersionTuple
- improve messaging for failed assertion
- improve messaging for KeyError
As a result of other changes, this class is not used anywhere.
@josh-hadley
Copy link
Collaborator Author

@frankrolf @punchcutter I would like to have you both review this if possible -- this addresses several issues on #1145 that Frank has been following. I have another related branch that will also apply to that effort.

Copy link
Contributor

@punchcutter punchcutter 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 here with a few hundred instances generated.

Copy link
Member

@frankrolf frankrolf left a comment

Choose a reason for hiding this comment

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

The effects of this PR have been verified, and confirmed as being positive. Thanks Josh!

@josh-hadley josh-hadley merged commit 4272278 into develop Jun 16, 2020
@josh-hadley josh-hadley deleted the jh-more-checkoutlines-overlap branch June 16, 2020 18:50
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.

3 participants