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

Add compare method to contour, with basic tests. #297

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

benkiel
Copy link
Member

@benkiel benkiel commented May 22, 2018

If this looks good, then it can be leveraged to add a compare to Glyph.

@benkiel benkiel requested a review from typesupply May 22, 2018 18:19
@robotools robotools deleted a comment May 22, 2018
@codecov
Copy link

codecov bot commented May 22, 2018

Codecov Report

Merging #297 into master will increase coverage by 0.65%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #297      +/-   ##
==========================================
+ Coverage   70.33%   70.98%   +0.65%     
==========================================
  Files          41       41              
  Lines        5889     5939      +50     
  Branches      949      966      +17     
==========================================
+ Hits         4142     4216      +74     
+ Misses       1609     1579      -30     
- Partials      138      144       +6
Impacted Files Coverage Δ
Lib/fontParts/base/contour.py 50.16% <100%> (+7.28%) ⬆️
Lib/fontParts/base/segment.py 70.62% <0%> (+5%) ⬆️

@robotools robotools deleted a comment May 22, 2018
@robotools robotools deleted a comment May 22, 2018

if sameStartPoint and samePosition:
return selfPoints == otherPoints
elif not sameStartPoint and samePosition:
Copy link
Member Author

Choose a reason for hiding this comment

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

Perhaps this should go, as one could have a two contours with the same points and number of points but different direction or shape (depending on how the contours were connected). The next bit should cover this, I think.

@robotools robotools deleted a comment Jun 19, 2018
@robotools robotools deleted a comment Jun 19, 2018
@robotools robotools deleted a comment Jun 28, 2018
@robotools robotools deleted a comment Jun 28, 2018
@robotools robotools deleted a comment Jun 28, 2018
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.

1 participant