-
Notifications
You must be signed in to change notification settings - Fork 476
Add HashPointPen from psautohint #2005
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
Conversation
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.
This should at least have doctests, if not a proper test file.
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.
tests would be good
I added some tests and fixes. I think that's it. |
Co-authored-by: Cosimo Lupo <cosimo@anthrotype.com>
…to hashpointpen
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.
Could you please also add a test containing nested composite glyphs? After that I think it's ready to be merged
I suggest you add some examples of how to use the pen in the class docstring |
I will resume working on this beginning of September. |
I think this is ready to be merged if no further issues arise. WDYT, @anthrotype? |
Adapted from https://github.com/adobe-type-tools/psautohint/blob/08b346865710ed3c172f1eb581d6ef243b203f99/python/psautohint/ufoFont.py#L800-L838
The pen generates a hash from a glyph's outlines and components and can be used to check if a glyph has changed.