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

 
Classes
       
fontTools.pens.basePen.AbstractPen
PrintingSegmentPen
AbstractPointPen
BasePointToSegmentPen
SegmentPrintingPointPen
PrintingPointPen

 
class AbstractPointPen
     Methods defined here:
addComponent(self, baseGlyphName, transformation)
Add a sub glyph.
addPoint(self, pt, segmentType=None, smooth=False, name=None, **kwargs)
Add a point to the current sub path.
beginPath(self)
Start a new sub path.
endPath(self)
End the current sub path.

 
class BasePointToSegmentPen(AbstractPointPen)
    Base class for retrieving the outline in a segment-oriented
way. The PointPen protocol is simple yet also a little tricky,
so when you need an outline presented as segments but you have
as points, do use this base implementation as it properly takes
care of all the edge cases.
 
  Methods defined here:
__init__(self)
addPoint(self, pt, segmentType=None, smooth=False, name=None, **kwargs)
beginPath(self)
endPath(self)

Methods inherited from AbstractPointPen:
addComponent(self, baseGlyphName, transformation)
Add a sub glyph.

 
class PrintingPointPen(AbstractPointPen)
     Methods defined here:
__init__(self)
addComponent(self, baseGlyphName, transformation)
addPoint(self, pt, segmentType=None, smooth=False, name=None, **kwargs)
beginPath(self)
endPath(self)

 
class PrintingSegmentPen(fontTools.pens.basePen.AbstractPen)
     Methods defined here:
addComponent(self, baseGlyphName, transformation)
closePath(self)
curveTo(self, *pts)
endPath(self)
lineTo(self, pt)
moveTo(self, pt)
qCurveTo(self, *pts)

 
class SegmentPrintingPointPen(BasePointToSegmentPen)
    
Method resolution order:
SegmentPrintingPointPen
BasePointToSegmentPen
AbstractPointPen

Methods inherited from BasePointToSegmentPen:
__init__(self)
addPoint(self, pt, segmentType=None, smooth=False, name=None, **kwargs)
beginPath(self)
endPath(self)

Methods inherited from AbstractPointPen:
addComponent(self, baseGlyphName, transformation)
Add a sub glyph.

 
Data
        __all__ = ['AbstractPointPen', 'BasePointToSegmentPen', 'PrintingPointPen', 'PrintingSegmentPen', 'SegmentPrintingPointPen']