156 lines
9.5 KiB
HTML
156 lines
9.5 KiB
HTML
|
|
||
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
|
<html><head><title>Python: module robofab.pens.pointPen</title>
|
||
|
</head><body bgcolor="#f0f0f8">
|
||
|
|
||
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||
|
<tr bgcolor="#7799ee">
|
||
|
<td valign=bottom> <br>
|
||
|
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="robofab.html"><font color="#ffffff">robofab</font></a>.<a href="robofab.pens.html"><font color="#ffffff">pens</font></a>.pointPen</strong></big></big></font></td
|
||
|
><td align=right valign=bottom
|
||
|
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/code/projects/robofab/Lib/robofab/pens/pointPen.py">/code/projects/robofab/Lib/robofab/pens/pointPen.py</a></font></td></tr></table>
|
||
|
<p></p>
|
||
|
<p>
|
||
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||
|
<tr bgcolor="#ee77aa">
|
||
|
<td colspan=3 valign=bottom> <br>
|
||
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||
|
|
||
|
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||
|
<td width="100%"><dl>
|
||
|
<dt><font face="helvetica, arial"><a href="fontTools.pens.basePen.html#AbstractPen">fontTools.pens.basePen.AbstractPen</a>
|
||
|
</font></dt><dd>
|
||
|
<dl>
|
||
|
<dt><font face="helvetica, arial"><a href="robofab.pens.pointPen.html#PrintingSegmentPen">PrintingSegmentPen</a>
|
||
|
</font></dt></dl>
|
||
|
</dd>
|
||
|
<dt><font face="helvetica, arial"><a href="robofab.pens.pointPen.html#AbstractPointPen">AbstractPointPen</a>
|
||
|
</font></dt><dd>
|
||
|
<dl>
|
||
|
<dt><font face="helvetica, arial"><a href="robofab.pens.pointPen.html#BasePointToSegmentPen">BasePointToSegmentPen</a>
|
||
|
</font></dt><dd>
|
||
|
<dl>
|
||
|
<dt><font face="helvetica, arial"><a href="robofab.pens.pointPen.html#SegmentPrintingPointPen">SegmentPrintingPointPen</a>
|
||
|
</font></dt></dl>
|
||
|
</dd>
|
||
|
<dt><font face="helvetica, arial"><a href="robofab.pens.pointPen.html#PrintingPointPen">PrintingPointPen</a>
|
||
|
</font></dt></dl>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p>
|
||
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||
|
<tr bgcolor="#ffc8d8">
|
||
|
<td colspan=3 valign=bottom> <br>
|
||
|
<font color="#000000" face="helvetica, arial"><a name="AbstractPointPen">class <strong>AbstractPointPen</strong></a></font></td></tr>
|
||
|
|
||
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||
|
<td width="100%">Methods defined here:<br>
|
||
|
<dl><dt><a name="AbstractPointPen-addComponent"><strong>addComponent</strong></a>(self, baseGlyphName, transformation)</dt><dd><tt>Add a sub glyph.</tt></dd></dl>
|
||
|
|
||
|
<dl><dt><a name="AbstractPointPen-addPoint"><strong>addPoint</strong></a>(self, pt, segmentType<font color="#909090">=None</font>, smooth<font color="#909090">=False</font>, name<font color="#909090">=None</font>, **kwargs)</dt><dd><tt>Add a point to the current sub path.</tt></dd></dl>
|
||
|
|
||
|
<dl><dt><a name="AbstractPointPen-beginPath"><strong>beginPath</strong></a>(self)</dt><dd><tt>Start a new sub path.</tt></dd></dl>
|
||
|
|
||
|
<dl><dt><a name="AbstractPointPen-endPath"><strong>endPath</strong></a>(self)</dt><dd><tt>End the current sub path.</tt></dd></dl>
|
||
|
|
||
|
</td></tr></table> <p>
|
||
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||
|
<tr bgcolor="#ffc8d8">
|
||
|
<td colspan=3 valign=bottom> <br>
|
||
|
<font color="#000000" face="helvetica, arial"><a name="BasePointToSegmentPen">class <strong>BasePointToSegmentPen</strong></a>(<a href="robofab.pens.pointPen.html#AbstractPointPen">AbstractPointPen</a>)</font></td></tr>
|
||
|
|
||
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||
|
<td colspan=2><tt>Base class for retrieving the outline in a segment-oriented<br>
|
||
|
way. The PointPen protocol is simple yet also a little tricky,<br>
|
||
|
so when you need an outline presented as segments but you have<br>
|
||
|
as points, do use this base implementation as it properly takes<br>
|
||
|
care of all the edge cases.<br> </tt></td></tr>
|
||
|
<tr><td> </td>
|
||
|
<td width="100%">Methods defined here:<br>
|
||
|
<dl><dt><a name="BasePointToSegmentPen-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="BasePointToSegmentPen-addPoint"><strong>addPoint</strong></a>(self, pt, segmentType<font color="#909090">=None</font>, smooth<font color="#909090">=False</font>, name<font color="#909090">=None</font>, **kwargs)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="BasePointToSegmentPen-beginPath"><strong>beginPath</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="BasePointToSegmentPen-endPath"><strong>endPath</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<hr>
|
||
|
Methods inherited from <a href="robofab.pens.pointPen.html#AbstractPointPen">AbstractPointPen</a>:<br>
|
||
|
<dl><dt><a name="BasePointToSegmentPen-addComponent"><strong>addComponent</strong></a>(self, baseGlyphName, transformation)</dt><dd><tt>Add a sub glyph.</tt></dd></dl>
|
||
|
|
||
|
</td></tr></table> <p>
|
||
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||
|
<tr bgcolor="#ffc8d8">
|
||
|
<td colspan=3 valign=bottom> <br>
|
||
|
<font color="#000000" face="helvetica, arial"><a name="PrintingPointPen">class <strong>PrintingPointPen</strong></a>(<a href="robofab.pens.pointPen.html#AbstractPointPen">AbstractPointPen</a>)</font></td></tr>
|
||
|
|
||
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||
|
<td width="100%">Methods defined here:<br>
|
||
|
<dl><dt><a name="PrintingPointPen-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="PrintingPointPen-addComponent"><strong>addComponent</strong></a>(self, baseGlyphName, transformation)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="PrintingPointPen-addPoint"><strong>addPoint</strong></a>(self, pt, segmentType<font color="#909090">=None</font>, smooth<font color="#909090">=False</font>, name<font color="#909090">=None</font>, **kwargs)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="PrintingPointPen-beginPath"><strong>beginPath</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="PrintingPointPen-endPath"><strong>endPath</strong></a>(self)</dt></dl>
|
||
|
|
||
|
</td></tr></table> <p>
|
||
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||
|
<tr bgcolor="#ffc8d8">
|
||
|
<td colspan=3 valign=bottom> <br>
|
||
|
<font color="#000000" face="helvetica, arial"><a name="PrintingSegmentPen">class <strong>PrintingSegmentPen</strong></a>(<a href="fontTools.pens.basePen.html#AbstractPen">fontTools.pens.basePen.AbstractPen</a>)</font></td></tr>
|
||
|
|
||
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||
|
<td width="100%">Methods defined here:<br>
|
||
|
<dl><dt><a name="PrintingSegmentPen-addComponent"><strong>addComponent</strong></a>(self, baseGlyphName, transformation)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="PrintingSegmentPen-closePath"><strong>closePath</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="PrintingSegmentPen-curveTo"><strong>curveTo</strong></a>(self, *pts)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="PrintingSegmentPen-endPath"><strong>endPath</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="PrintingSegmentPen-lineTo"><strong>lineTo</strong></a>(self, pt)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="PrintingSegmentPen-moveTo"><strong>moveTo</strong></a>(self, pt)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="PrintingSegmentPen-qCurveTo"><strong>qCurveTo</strong></a>(self, *pts)</dt></dl>
|
||
|
|
||
|
</td></tr></table> <p>
|
||
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||
|
<tr bgcolor="#ffc8d8">
|
||
|
<td colspan=3 valign=bottom> <br>
|
||
|
<font color="#000000" face="helvetica, arial"><a name="SegmentPrintingPointPen">class <strong>SegmentPrintingPointPen</strong></a>(<a href="robofab.pens.pointPen.html#BasePointToSegmentPen">BasePointToSegmentPen</a>)</font></td></tr>
|
||
|
|
||
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
||
|
<dd><a href="robofab.pens.pointPen.html#SegmentPrintingPointPen">SegmentPrintingPointPen</a></dd>
|
||
|
<dd><a href="robofab.pens.pointPen.html#BasePointToSegmentPen">BasePointToSegmentPen</a></dd>
|
||
|
<dd><a href="robofab.pens.pointPen.html#AbstractPointPen">AbstractPointPen</a></dd>
|
||
|
</dl>
|
||
|
<hr>
|
||
|
Methods inherited from <a href="robofab.pens.pointPen.html#BasePointToSegmentPen">BasePointToSegmentPen</a>:<br>
|
||
|
<dl><dt><a name="SegmentPrintingPointPen-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="SegmentPrintingPointPen-addPoint"><strong>addPoint</strong></a>(self, pt, segmentType<font color="#909090">=None</font>, smooth<font color="#909090">=False</font>, name<font color="#909090">=None</font>, **kwargs)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="SegmentPrintingPointPen-beginPath"><strong>beginPath</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="SegmentPrintingPointPen-endPath"><strong>endPath</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<hr>
|
||
|
Methods inherited from <a href="robofab.pens.pointPen.html#AbstractPointPen">AbstractPointPen</a>:<br>
|
||
|
<dl><dt><a name="SegmentPrintingPointPen-addComponent"><strong>addComponent</strong></a>(self, baseGlyphName, transformation)</dt><dd><tt>Add a sub glyph.</tt></dd></dl>
|
||
|
|
||
|
</td></tr></table></td></tr></table><p>
|
||
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||
|
<tr bgcolor="#55aa55">
|
||
|
<td colspan=3 valign=bottom> <br>
|
||
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||
|
|
||
|
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||
|
<td width="100%"><strong>__all__</strong> = ['AbstractPointPen', 'BasePointToSegmentPen', 'PrintingPointPen', 'PrintingSegmentPen', 'SegmentPrintingPointPen']</td></tr></table>
|
||
|
</body></html>
|