-
Notifications
You must be signed in to change notification settings - Fork 8
Description
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 to beginPath(), and that is added to the digest. However, any additional keyword arguments to addPoint() are ignored, including the identifier keyword arg. The identifier argument to addComponent() is put into the digest.
- Is the inconsistent handling of
identifieron purpose, or is it an oversight? - Are
identifiervalues even at all relevant to "digests"? - Should the
ignoreSmoothAndNameflag 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 the identifier argument in beginPath(), so if there is a unigue identifier, then comparing outline structures this way will fail because of that.