def getDigest(dGlyph): """copied from robofab ObjectsBase.py. """ mp = DigestPointPen() dGlyph.drawPoints(mp) digest = mp.getDigestPointsOnly(needSort=False) # we need to round to int. intDigest = digest #[ (int(p[0]), int(p[1])) for p in digest] return intDigest
def getDigest(dGlyph): """copied from robofab ObjectsBase.py. """ mp = DigestPointPen() dGlyph.drawPoints(mp) digest = mp.getDigestPointsOnly(needSort=False) # we need to round to int. intDigest = digest #[ (int(p[0]), int(p[1])) for p in digest] return intDigest
def getDigest(dGlyph): """copied from robofab ObjectsBase.py. """ mp = DigestPointPen() dGlyph.drawPoints(mp) return mp.getDigestPointsOnly(needSort=True)