-
Notifications
You must be signed in to change notification settings - Fork 8
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
DigestPointPen questions #12
Comments
identifier must be unique (for each glyph...) so its maybe weird to compare digests/structures with identifiers... I guess identifier could be ignore in the digests |
actually I don't see the point of that getDigestPointsOnly. What's the use of a list of coordinates (even sorted by default) without information about point types and contour structure? Two completely different glyphs could well get the same digest. And yes I agree identifiers by definition should be unique so it doesn't make sense to include in the digest. @miguelsousa pinged me on #7 to publish fontPens on PyPI. @justvanrossum do you think the current issue #12 is a blocker for the release? |
No, definitely not a blocker. (I don't see the point of getDigestPointsOnly either.) |
I'm looking into rewriting DigestPointPen by subclassing RecordingPointPen and have some questions.
I have fixed #8, and see that Adobe uses the getDigestPointsOnly() method. That simply returns a tuple of all points, optionally sorted, without any additional info about point types of contour structure.
https://github.com/adobe-type-tools/afdko/pull/230/files#r159970100
How do other people use DigestPointPen?
I noticed that since robofab, it was enhanced with an
identifier
argument tobeginPath()
, and that is added to the digest. However, any additional keyword arguments toaddPoint()
are ignored, including theidentifier
keyword arg. Theidentifier
argument toaddComponent()
is put into the digest.identifier
on purpose, or is it an oversight?identifier
values even at all relevant to "digests"?ignoreSmoothAndName
flag influence the recording ofidentifier
?I would really love to come to some consensus about what it is that needs to be digested and for what purposes.
One last thing: the
DigestPointStructurePen
class doesn't do anything about theidentifier
argument inbeginPath()
, so if there is a unigue identifier, then comparing outline structures this way will fail because of that.The text was updated successfully, but these errors were encountered: