Skip to content

Difference in getDigestPointsOnly behavior between robofab.pens.digestPen and fontPens.digestPointPen #8

@cjchapman

Description

@cjchapman

I see a difference in behavior in the getDigestPointsOnly() method between robofab.pens.digestPen and fontPens.digestPointPen, and just wanted to check if this is expected:

>>> from robofab.pens.digestPen import DigestPointPen
>>> pen = DigestPointPen()
>>> pen.beginPath()
>>> pen.addPoint((10, 10), "move", "True")
>>> pen.getDigestPointsOnly(needSort=False)
((10, 10),)


>>> from fontPens.digestPointPen import DigestPointPen
>>> pen = DigestPointPen()
>>> pen.beginPath()
>>> pen.addPoint((10, 10), "move", "True")
>>> pen.getDigestPointsOnly(needSort=False)
('beginPath', (10, 10))

This lead to the changes in lines 873 and 890 of CheckOutlinesUFO.py in this PR:
https://github.com/adobe-type-tools/afdko/pull/230/files

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