-
Notifications
You must be signed in to change notification settings - Fork 44
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ 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
|
Lib/fontParts/base/contour.py
Outdated
|
||
if sameStartPoint and samePosition: | ||
return selfPoints == otherPoints | ||
elif not sameStartPoint and samePosition: |
There was a problem hiding this comment.
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.
If this looks good, then it can be leveraged to add a compare to Glyph.