Home | History | Annotate | Download | only in pens

Lines Matching refs:Pen

1 """fontTools.pens.basePen.py -- Tools and base classes to build pen objects.
3 The Pen Protocol
5 A Pen is a kind of object that standardizes the way how to "draw" outlines:
13 outline.draw(pen) # 'outline' draws itself onto 'pen'
17 draw() method) as well as a pen itself: you *build* an outline using pen
20 The AbstractPen class defines the Pen protocol. It implements almost
23 "this class implements the Pen protocol.". An examples of an AbstractPen
27 draw (for example a pen renders outlines using a native graphics engine).
29 a pen that fully conforms to the pen protocol. Note that if you subclass
50 end each sub path with a call to pen.closePath() or pen.endPath().
97 """Close the current sub path. You must call either pen.closePath()
98 or pen.endPath() after each sub path.
104 either pen.closePath() or pen.endPath() after each sub path.
119 """A pen that does nothing.
354 pen = _TestPen(None)
355 pen.moveTo((0, 0))
356 pen.lineTo((0, 100))
357 pen.curveTo((50, 75), (60, 50), (50, 25), (0, 0))
358 pen.closePath()
360 pen = _TestPen(None)
362 pen.qCurveTo((0, 0), (0, 100), (100, 100), (100, 0), None)
363 pen.closePath()