robofab.pens.digestPen
index
/code/projects/robofab/Lib/robofab/pens/digestPen.py

A couple of point pens which return the glyph as a list of basic values.

 
Classes
       
robofab.pens.pointPen.AbstractPointPen
DigestPointPen
DigestPointStructurePen

 
class DigestPointPen(robofab.pens.pointPen.AbstractPointPen)
    Calculate a digest of all points
        AND coordinates
        AND components
in a glyph.
 
  Methods defined here:
__init__(self, ignoreSmoothAndName=False)
addComponent(self, baseGlyphName, transformation)
addPoint(self, pt, segmentType=None, smooth=False, name=None, **kwargs)
beginPath(self)
endPath(self)
getDigest(self)
getDigestPointsOnly(self)
Return a tuple with all coordinates of all points, 
but without smooth info or drawing instructions.
For instance if you want to compare 2 glyphs in shape,
but not interpolatability.

 
class DigestPointStructurePen(DigestPointPen)
    Calculate a digest of the structure of the glyph
NOT coordinates
NOT values.
 
 
Method resolution order:
DigestPointStructurePen
DigestPointPen
robofab.pens.pointPen.AbstractPointPen

Methods defined here:
addComponent(self, baseGlyphName, transformation)
addPoint(self, pt, segmentType=None, smooth=False, name=None, **kwargs)

Methods inherited from DigestPointPen:
__init__(self, ignoreSmoothAndName=False)
beginPath(self)
endPath(self)
getDigest(self)
getDigestPointsOnly(self)
Return a tuple with all coordinates of all points, 
but without smooth info or drawing instructions.
For instance if you want to compare 2 glyphs in shape,
but not interpolatability.