Skip to content

DigestPointPen questions #12

@justvanrossum

Description

@justvanrossum

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 identifier on purpose, or is it an oversight?
  • Are identifier values even at all relevant to "digests"?
  • Should the ignoreSmoothAndName flag influence the recording of identifier?

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions