1598 lines
115 KiB
HTML
1598 lines
115 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module robofab.objects.objectsBase</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.objects.html"><font color="#ffffff">objects</font></a>.objectsBase</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/objects/objectsBase.py">/code/projects/robofab/Lib/robofab/objects/objectsBase.py</a></font></td></tr></table>
|
|
<p><tt>Base classes for the Unified Font Objects (UFO),<br>
|
|
a series of classes that deal with fonts, glyphs,<br>
|
|
contours and related things.<br>
|
|
<br>
|
|
Unified Font Objects are:<br>
|
|
- platform independent<br>
|
|
- application independent<br>
|
|
<br>
|
|
About Object Inheritance:<br>
|
|
objectsFL and objectsRF objects inherit<br>
|
|
methods and attributes from these objects.<br>
|
|
In other words, if it is in here, you can<br>
|
|
do it with the objectsFL and objectsRF.</tt></p>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#aa55cc">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
|
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="copy.html">copy</a><br>
|
|
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
|
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><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="exceptions.html#Exception">exceptions.Exception</a>
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#RoboFabInterpolationError">RoboFabInterpolationError</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
<dt><font face="helvetica, arial"><a href="__builtin__.html#dict">__builtin__.dict</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BaseGroups">BaseGroups</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BaseLib">BaseLib</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#FuzzyNumber">FuzzyNumber</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BaseAnchor">BaseAnchor</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BaseBPoint">BaseBPoint</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BaseComponent">BaseComponent</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BaseContour">BaseContour</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BaseFont">BaseFont</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BaseGlyph">BaseGlyph</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BaseGuide">BaseGuide</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BaseInfo">BaseInfo</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BaseKerning">BaseKerning</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BasePoint">BasePoint</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.objectsBase.html#BaseSegment">BaseSegment</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
</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="BaseAnchor">class <strong>BaseAnchor</strong></a>(<a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for all anchor point objects.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BaseAnchor">BaseAnchor</a></dd>
|
|
<dd><a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BaseAnchor-__add__"><strong>__add__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-__mul__"><strong>__mul__</strong></a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-__rmul__"><strong>__rmul__</strong></a> = <a href="#BaseAnchor-__mul__">__mul__</a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-__sub__"><strong>__sub__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this anchor.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-draw"><strong>draw</strong></a>(self, pen)</dt><dd><tt>Draw the <a href="__builtin__.html#object">object</a> onto a segment pen</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-drawPoints"><strong>drawPoints</strong></a>(self, pen)</dt><dd><tt>draw the <a href="__builtin__.html#object">object</a> with a point pen</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-move"><strong>move</strong></a>(self, (x, y))</dt><dd><tt>Move the anchor</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-round"><strong>round</strong></a>(self)</dt><dd><tt>round the values in the anchor</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-scale"><strong>scale</strong></a>(self, (x, y), center<font color="#909090">=(0, 0)</font>)</dt><dd><tt>scale the anchor</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-transform"><strong>transform</strong></a>(self, matrix)</dt><dd><tt>Transform this anchor. Use a Transform matrix<br>
|
|
<a href="__builtin__.html#object">object</a> from fontTools.misc.transform</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><a name="BaseAnchor-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-dump"><strong>dump</strong></a>(self, private<font color="#909090">=False</font>)</dt><dd><tt>Print a dump of this <a href="__builtin__.html#object">object</a> to the std out.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-isRobofab"><strong>isRobofab</strong></a>(self)</dt><dd><tt>Presence of this method indicates a Robofab <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-naked"><strong>naked</strong></a>(self)</dt><dd><tt>Return the wrapped <a href="__builtin__.html#object">object</a> itself, in case it is needed for direct access.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseAnchor-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129c710><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'RBaseObject' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>attrMap</strong> = {}</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="BaseBPoint">class <strong>BaseBPoint</strong></a>(<a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for bPoints objects.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BaseBPoint">BaseBPoint</a></dd>
|
|
<dd><a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BaseBPoint-__add__"><strong>__add__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-__mul__"><strong>__mul__</strong></a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-__rmul__"><strong>__rmul__</strong></a> = <a href="#BaseBPoint-__mul__">__mul__</a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-__sub__"><strong>__sub__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-move"><strong>move</strong></a>(self, (x, y))</dt><dd><tt>move the bPoint</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-round"><strong>round</strong></a>(self)</dt><dd><tt>Round the coordinates to integers</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-scale"><strong>scale</strong></a>(self, (x, y), center<font color="#909090">=(0, 0)</font>)</dt><dd><tt>scale the bPoint</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-select"><strong>select</strong></a>(self, state<font color="#909090">=True</font>)</dt><dd><tt>Set the selection of this point.<br>
|
|
XXXX This method should be a lot more versatile, dealing with<br>
|
|
different kinds of selection, select the bcp's seperately etc.<br>
|
|
But that's for later when we need it more. For now it's just <br>
|
|
one flag for the entire thing.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-transform"><strong>transform</strong></a>(self, matrix)</dt><dd><tt>Transform this point. Use a Transform matrix<br>
|
|
<a href="__builtin__.html#object">object</a> from fontTools.misc.transform</tt></dd></dl>
|
|
|
|
<hr>
|
|
Properties defined here:<br>
|
|
<dl><dt><strong>anchor</strong></dt>
|
|
<dd><tt>the position of the anchor</tt></dd>
|
|
<dd><dl><dt><a name="BaseBPoint-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseBPoint-_get_anchor">_get_anchor</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseBPoint-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseBPoint-_set_anchor">_set_anchor</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>bcpIn</strong></dt>
|
|
<dd><tt>the (x,y) for the incoming bcp</tt></dd>
|
|
<dd><dl><dt><a name="BaseBPoint-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseBPoint-_get_bcpIn">_get_bcpIn</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseBPoint-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseBPoint-_set_bcpIn">_set_bcpIn</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>bcpOut</strong></dt>
|
|
<dd><tt>the (x,y) for the outgoing bcp</tt></dd>
|
|
<dd><dl><dt><a name="BaseBPoint-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseBPoint-_get_bcpOut">_get_bcpOut</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseBPoint-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseBPoint-_set_bcpOut">_set_bcpOut</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>type</strong></dt>
|
|
<dd><tt>the type of bPoint, either 'corner' or 'curve'</tt></dd>
|
|
<dd><dl><dt><a name="BaseBPoint-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseBPoint-_get_type">_get_type</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseBPoint-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseBPoint-_set_type">_set_type</a>(self, pointType)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><a name="BaseBPoint-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this <a href="__builtin__.html#object">object</a>. Pass an <a href="__builtin__.html#object">object</a> for parenting if you want.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-dump"><strong>dump</strong></a>(self, private<font color="#909090">=False</font>)</dt><dd><tt>Print a dump of this <a href="__builtin__.html#object">object</a> to the std out.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-isRobofab"><strong>isRobofab</strong></a>(self)</dt><dd><tt>Presence of this method indicates a Robofab <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-naked"><strong>naked</strong></a>(self)</dt><dd><tt>Return the wrapped <a href="__builtin__.html#object">object</a> itself, in case it is needed for direct access.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseBPoint-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129c710><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'RBaseObject' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>attrMap</strong> = {}</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="BaseComponent">class <strong>BaseComponent</strong></a>(<a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for all component objects.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BaseComponent">BaseComponent</a></dd>
|
|
<dd><a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BaseComponent-__add__"><strong>__add__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-__mul__"><strong>__mul__</strong></a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-__rmul__"><strong>__rmul__</strong></a> = <a href="#BaseComponent-__mul__">__mul__</a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-__sub__"><strong>__sub__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this component.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-draw"><strong>draw</strong></a>(self, pen)</dt><dd><tt>Segment pen drawing method.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-drawPoints"><strong>drawPoints</strong></a>(self, pen)</dt><dd><tt>draw the <a href="__builtin__.html#object">object</a> with a point pen</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-round"><strong>round</strong></a>(self)</dt><dd><tt>round the offset values</tt></dd></dl>
|
|
|
|
<hr>
|
|
Properties defined here:<br>
|
|
<dl><dt><strong>box</strong></dt>
|
|
<dd><tt>the bounding box of the component: (xMin, yMin, xMax, yMax)</tt></dd>
|
|
<dd><dl><dt><a name="BaseComponent-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseComponent-_get_box">_get_box</a>(self)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><a name="BaseComponent-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-dump"><strong>dump</strong></a>(self, private<font color="#909090">=False</font>)</dt><dd><tt>Print a dump of this <a href="__builtin__.html#object">object</a> to the std out.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-isRobofab"><strong>isRobofab</strong></a>(self)</dt><dd><tt>Presence of this method indicates a Robofab <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-naked"><strong>naked</strong></a>(self)</dt><dd><tt>Return the wrapped <a href="__builtin__.html#object">object</a> itself, in case it is needed for direct access.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseComponent-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129c690><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'RBaseObject' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>attrMap</strong> = {}</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="BaseContour">class <strong>BaseContour</strong></a>(<a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for all contour objects.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BaseContour">BaseContour</a></dd>
|
|
<dd><a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BaseContour-__add__"><strong>__add__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseContour-__getitem__"><strong>__getitem__</strong></a>(self, index)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseContour-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseContour-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseContour-__mul__"><strong>__mul__</strong></a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseContour-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseContour-__rmul__"><strong>__rmul__</strong></a> = <a href="#BaseContour-__mul__">__mul__</a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseContour-__sub__"><strong>__sub__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseContour-appendBPoint"><strong>appendBPoint</strong></a>(self, pointType, anchor, bcpIn<font color="#909090">=(0, 0)</font>, bcpOut<font color="#909090">=(0, 0)</font>)</dt><dd><tt>append a bPoint to the contour</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-autoStartSegment"><strong>autoStartSegment</strong></a>(self)</dt><dd><tt>automatically set the lower left point of the contour as the first point.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this contour</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-draw"><strong>draw</strong></a>(self, pen)</dt><dd><tt>draw the <a href="__builtin__.html#object">object</a> with a fontTools pen</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-drawPoints"><strong>drawPoints</strong></a>(self, pen)</dt><dd><tt>draw the <a href="__builtin__.html#object">object</a> with a point pen</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-insertBPoint"><strong>insertBPoint</strong></a>(self, index, pointType, anchor, bcpIn<font color="#909090">=(0, 0)</font>, bcpOut<font color="#909090">=(0, 0)</font>)</dt><dd><tt>insert a bPoint at index on the contour</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-move"><strong>move</strong></a>(self, (x, y))</dt><dd><tt>move the contour</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-pointInside"><strong>pointInside</strong></a>(self, (x, y), evenOdd<font color="#909090">=0</font>)</dt><dd><tt>determine if the point is inside or ouside of the contour</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-rotate"><strong>rotate</strong></a>(self, angle, offset<font color="#909090">=None</font>)</dt><dd><tt>rotate the contour</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-round"><strong>round</strong></a>(self)</dt><dd><tt>round the value of all points in the contour</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-scale"><strong>scale</strong></a>(self, (x, y), center<font color="#909090">=(0, 0)</font>)</dt><dd><tt>scale the contour</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-skew"><strong>skew</strong></a>(self, angle, offset<font color="#909090">=None</font>)</dt><dd><tt>skew the contour</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-transform"><strong>transform</strong></a>(self, matrix)</dt><dd><tt>Transform this contour.<br>
|
|
Use a Transform matrix <a href="__builtin__.html#object">object</a> from<br>
|
|
robofab.transform</tt></dd></dl>
|
|
|
|
<hr>
|
|
Properties defined here:<br>
|
|
<dl><dt><strong>box</strong></dt>
|
|
<dd><tt>the bounding box for the contour</tt></dd>
|
|
<dd><dl><dt><a name="BaseContour-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseContour-_get_box">_get_box</a>(self)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>clockwise</strong></dt>
|
|
<dd><tt>direction of contour: 1=clockwise 0=counterclockwise</tt></dd>
|
|
<dd><dl><dt><a name="BaseContour-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseContour-_get_clockwise">_get_clockwise</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseContour-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseContour-_set_clockwise">_set_clockwise</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><a name="BaseContour-dump"><strong>dump</strong></a>(self, private<font color="#909090">=False</font>)</dt><dd><tt>Print a dump of this <a href="__builtin__.html#object">object</a> to the std out.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-isRobofab"><strong>isRobofab</strong></a>(self)</dt><dd><tt>Presence of this method indicates a Robofab <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-naked"><strong>naked</strong></a>(self)</dt><dd><tt>Return the wrapped <a href="__builtin__.html#object">object</a> itself, in case it is needed for direct access.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseContour-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseContour-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129c6b0><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'RBaseObject' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>attrMap</strong> = {}</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="BaseFont">class <strong>BaseFont</strong></a>(<a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for all font objects.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BaseFont">BaseFont</a></dd>
|
|
<dd><a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BaseFont-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseFont-__getitem__"><strong>__getitem__</strong></a>(self, glyphName)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseFont-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseFont-__iter__"><strong>__iter__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseFont-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseFont-autoUnicodes"><strong>autoUnicodes</strong></a>(self)</dt><dd><tt>Using fontTools.agl, assign Unicode lists to all glyphs in the font</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-close"><strong>close</strong></a>(self, save<font color="#909090">=1</font>)</dt><dd><tt>Close the font, saving is optional.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-compileGlyph"><strong>compileGlyph</strong></a>(self, glyphName, baseName, accentNames, adjustWidth<font color="#909090">=False</font>, preflight<font color="#909090">=False</font>, printErrors<font color="#909090">=True</font>)</dt><dd><tt>Compile components into a new glyph using components and anchorpoints.<br>
|
|
font: the font<br>
|
|
glyphName: the name of the glyph where it all needs to go<br>
|
|
baseName: the name of the base glyph<br>
|
|
accentNames: a list of accentName, anchorName tuples, [('acute', 'top'), etc]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-generateGlyph"><strong>generateGlyph</strong></a>(self, glyphName, replace<font color="#909090">=1</font>, preflight<font color="#909090">=False</font>, printErrors<font color="#909090">=True</font>)</dt><dd><tt>Generate a glyph and return it. Assembled from GlyphConstruction.txt</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-getCharacterMapping"><strong>getCharacterMapping</strong></a>(self)</dt><dd><tt>Create a dictionary of unicode -> [glyphname, ...] mappings.<br>
|
|
Note that this <a href="__builtin__.html#dict">dict</a> is created each time this method is called, <br>
|
|
which can make it expensive for larger fonts. All glyphs are loaded.<br>
|
|
Note that one glyph can have multiple unicode values,<br>
|
|
and a unicode value can have multiple glyphs pointing to it.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-getGlyphNameToFileNameFunc"><strong>getGlyphNameToFileNameFunc</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseFont-getReverseComponentMapping"><strong>getReverseComponentMapping</strong></a>(self)</dt><dd><tt>Get a reversed map of component references in the font.<br>
|
|
{<br>
|
|
'A' : ['Aacute', 'Aring']<br>
|
|
'acute' : ['Aacute']<br>
|
|
'ring' : ['Aring']<br>
|
|
etc.<br>
|
|
}</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-interpolate"><strong>interpolate</strong></a>(self, factor, minFont, maxFont, suppressError<font color="#909090">=True</font>, analyzeOnly<font color="#909090">=False</font>, doProgress<font color="#909090">=False</font>)</dt><dd><tt>Traditional interpolation method. Interpolates by factor between minFont and maxFont.<br>
|
|
suppressError will supress all tracebacks and analyze only will not perform the interpolation<br>
|
|
but it will analyze all glyphs and return a <a href="__builtin__.html#dict">dict</a> of problems.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-keys"><strong>keys</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseFont-round"><strong>round</strong></a>(self)</dt><dd><tt>round all of the points in all of the glyphs</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-update"><strong>update</strong></a>(self)</dt><dd><tt>update the font</tt></dd></dl>
|
|
|
|
<hr>
|
|
Class methods defined here:<br>
|
|
<dl><dt><a name="BaseFont-getAllFonts"><strong>getAllFonts</strong></a>(cls)<font color="#909090"><font face="helvetica, arial"> from <a href="__builtin__.html#type">__builtin__.type</a></font></font></dt><dd><tt>Return a list of all instances of this class (or its subclasses)<br>
|
|
that are currently alive.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><a name="BaseFont-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseFont-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this <a href="__builtin__.html#object">object</a>. Pass an <a href="__builtin__.html#object">object</a> for parenting if you want.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-dump"><strong>dump</strong></a>(self, private<font color="#909090">=False</font>)</dt><dd><tt>Print a dump of this <a href="__builtin__.html#object">object</a> to the std out.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-isRobofab"><strong>isRobofab</strong></a>(self)</dt><dd><tt>Presence of this method indicates a Robofab <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-naked"><strong>naked</strong></a>(self)</dt><dd><tt>Return the wrapped <a href="__builtin__.html#object">object</a> itself, in case it is needed for direct access.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseFont-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseFont-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129c730><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'RBaseObject' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>attrMap</strong> = {}</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="BaseGlyph">class <strong>BaseGlyph</strong></a>(<a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for all glyph objects.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BaseGlyph">BaseGlyph</a></dd>
|
|
<dd><a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BaseGlyph-__add__"><strong>__add__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-__div__"><strong>__div__</strong></a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-__mul__"><strong>__mul__</strong></a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-__rmul__"><strong>__rmul__</strong></a> = <a href="#BaseGlyph-__mul__">__mul__</a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-__sub__"><strong>__sub__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-appendContour"><strong>appendContour</strong></a>(self, aContour, offset<font color="#909090">=(0, 0)</font>)</dt><dd><tt>append a contour to the glyph</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-appendGlyph"><strong>appendGlyph</strong></a>(self, aGlyph, offset<font color="#909090">=(0, 0)</font>)</dt><dd><tt>append another glyph to the glyph</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-autoContourOrder"><strong>autoContourOrder</strong></a>(self)</dt><dd><tt>attempt to sort the contours based on their centers</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-autoUnicodes"><strong>autoUnicodes</strong></a>(self)</dt><dd><tt>Using fontTools.agl, assign Unicode list to the glyph</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this glyph</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-correctDirection"><strong>correctDirection</strong></a>(self, trueType<font color="#909090">=False</font>)</dt><dd><tt>corect the direction of the contours in the glyph.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-deSelect"><strong>deSelect</strong></a>(self)</dt><dd><tt>Set all selected attrs in glyph to False: for the glyph, components, anchors, points.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-draw"><strong>draw</strong></a>(self, pen)</dt><dd><tt>draw the <a href="__builtin__.html#object">object</a> with a RoboFab segment pen</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-drawPoints"><strong>drawPoints</strong></a>(self, pen)</dt><dd><tt>draw the <a href="__builtin__.html#object">object</a> with a point pen</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-getGlyph"><strong>getGlyph</strong></a>(self, glyphName)</dt><dd><tt>Provided there is a font parent for this glyph, return a sibling glyph.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-getPen"><strong>getPen</strong></a>(self)</dt><dd><tt>Return a Pen <a href="__builtin__.html#object">object</a> for creating an outline in this glyph.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-getPointPen"><strong>getPointPen</strong></a>(self)</dt><dd><tt>Return a PointPen <a href="__builtin__.html#object">object</a> for creating an outline in this glyph.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-interpolate"><strong>interpolate</strong></a>(self, factor, minGlyph, maxGlyph, suppressError<font color="#909090">=True</font>, analyzeOnly<font color="#909090">=False</font>)</dt><dd><tt>Traditional interpolation method. Interpolates by factor between minGlyph and maxGlyph.<br>
|
|
suppressError will supress all tracebacks and analyze only will not perform the interpolation<br>
|
|
but it will analyze all glyphs and return a <a href="__builtin__.html#dict">dict</a> of problems.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-isCompatible"><strong>isCompatible</strong></a>(self, otherGlyph, report<font color="#909090">=True</font>)</dt><dd><tt>Return a bool value if the glyph is compatible with otherGlyph.<br>
|
|
With report = True, isCompatible will return a report of what's wrong.<br>
|
|
The interpolate method requires absolute equality between contour data.<br>
|
|
Absolute equality is preferred among component and anchor data, but<br>
|
|
it is NOT required. Interpolation between components and anchors<br>
|
|
will only deal with compatible data and incompatible data will be<br>
|
|
ignored. This method reflects this system.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-isEmpty"><strong>isEmpty</strong></a>(self)</dt><dd><tt>return true if the glyph has no contours or components</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-move"><strong>move</strong></a>(self, (x, y), contours<font color="#909090">=True</font>, components<font color="#909090">=True</font>, anchors<font color="#909090">=True</font>)</dt><dd><tt>Move a glyph's items that are flagged as True</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-pointInside"><strong>pointInside</strong></a>(self, (x, y), evenOdd<font color="#909090">=0</font>)</dt><dd><tt>determine if the point is in the black or white of the glyph</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-rasterize"><strong>rasterize</strong></a>(self, cellSize<font color="#909090">=50</font>, xMin<font color="#909090">=None</font>, yMin<font color="#909090">=None</font>, xMax<font color="#909090">=None</font>, yMax<font color="#909090">=None</font>)</dt><dd><tt>Slice the glyph into a grid based on the cell size.<br>
|
|
It returns a list of lists containing bool values<br>
|
|
that indicate the black (True) or white (False)<br>
|
|
value of that particular cell. These lists are<br>
|
|
arranged from top to bottom of the glyph and<br>
|
|
proceed from left to right.<br>
|
|
This is an expensive operation!</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-rotate"><strong>rotate</strong></a>(self, angle, offset<font color="#909090">=None</font>)</dt><dd><tt>rotate the glyph</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-round"><strong>round</strong></a>(self)</dt><dd><tt>round all coordinates in all contours, components and anchors</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-scale"><strong>scale</strong></a>(self, (x, y), center<font color="#909090">=(0, 0)</font>)</dt><dd><tt>scale the glyph</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-skew"><strong>skew</strong></a>(self, angle, offset<font color="#909090">=None</font>)</dt><dd><tt>skew the glyph</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-transform"><strong>transform</strong></a>(self, matrix)</dt><dd><tt>Transform this glyph.<br>
|
|
Use a Transform matrix <a href="__builtin__.html#object">object</a> from<br>
|
|
robofab.transform</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-update"><strong>update</strong></a>(self)</dt><dd><tt>update the glyph</tt></dd></dl>
|
|
|
|
<hr>
|
|
Properties defined here:<br>
|
|
<dl><dt><strong>box</strong></dt>
|
|
<dd><tt>the bounding box of the glyph: (xMin, yMin, xMax, yMax)</tt></dd>
|
|
<dd><dl><dt><a name="BaseGlyph-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseGlyph-_get_box">_get_box</a>(self)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>leftMargin</strong></dt>
|
|
<dd><tt>the left margin</tt></dd>
|
|
<dd><dl><dt><a name="BaseGlyph-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseGlyph-_get_leftMargin">_get_leftMargin</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseGlyph-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseGlyph-_set_leftMargin">_set_leftMargin</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>rightMargin</strong></dt>
|
|
<dd><tt>the right margin</tt></dd>
|
|
<dd><dl><dt><a name="BaseGlyph-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseGlyph-_get_rightMargin">_get_rightMargin</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseGlyph-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseGlyph-_set_rightMargin">_set_rightMargin</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><a name="BaseGlyph-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-dump"><strong>dump</strong></a>(self, private<font color="#909090">=False</font>)</dt><dd><tt>Print a dump of this <a href="__builtin__.html#object">object</a> to the std out.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-isRobofab"><strong>isRobofab</strong></a>(self)</dt><dd><tt>Presence of this method indicates a Robofab <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-naked"><strong>naked</strong></a>(self)</dt><dd><tt>Return the wrapped <a href="__builtin__.html#object">object</a> itself, in case it is needed for direct access.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGlyph-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129cc70><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'RBaseObject' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>attrMap</strong> = {}</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="BaseGroups">class <strong>BaseGroups</strong></a>(<a href="__builtin__.html#dict">__builtin__.dict</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for all RFont.groups objects<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BaseGroups">BaseGroups</a></dd>
|
|
<dd><a href="__builtin__.html#dict">__builtin__.dict</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BaseGroups-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__setitem__"><strong>__setitem__</strong></a>(self, key, value)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-findGlyph"><strong>findGlyph</strong></a>(self, glyphName)</dt><dd><tt>return a list of all groups contianing glyphName</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129cdf0><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'BaseGroups' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="__builtin__.html#dict">__builtin__.dict</a>:<br>
|
|
<dl><dt><a name="BaseGroups-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__cmp__">__cmp__</a>(y) <==> cmp(x,y)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__contains__">__contains__</a>(y) <==> y in x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__delitem__"><strong>__delitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__delitem__">__delitem__</a>(y) <==> del x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__eq__">__eq__</a>(y) <==> x==y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__ge__">__ge__</a>(y) <==> x>=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__iter__">__iter__</a>() <==> iter(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__le__">__le__</a>(y) <==> x<=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__len__"><strong>__len__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__len__">__len__</a>() <==> len(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__lt__">__lt__</a>(y) <==> x<y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseGroups-__ne__">__ne__</a>(y) <==> x!=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-clear"><strong>clear</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-clear">clear</a>() -> None. Remove all items from D.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-copy"><strong>copy</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-copy">copy</a>() -> a shallow copy of D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-get"><strong>get</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-get">get</a>(k[,d]) -> D[k] if k in D, else d. d defaults to None.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-has_key"><strong>has_key</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-has_key">has_key</a>(k) -> True if D has a key k, else False</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-items"><strong>items</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-items">items</a>() -> list of D's (key, value) pairs, as 2-tuples</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-iteritems"><strong>iteritems</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-iteritems">iteritems</a>() -> an iterator over the (key, value) items of D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-iterkeys"><strong>iterkeys</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-iterkeys">iterkeys</a>() -> an iterator over the keys of D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-itervalues"><strong>itervalues</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-itervalues">itervalues</a>() -> an iterator over the values of D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-keys"><strong>keys</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-keys">keys</a>() -> list of D's keys</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-pop"><strong>pop</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-pop">pop</a>(k[,d]) -> v, remove specified key and return the corresponding value<br>
|
|
If key is not found, d is returned if given, otherwise KeyError is raised</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-popitem"><strong>popitem</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-popitem">popitem</a>() -> (k, v), remove and return some (key, value) pair as a<br>
|
|
2-tuple; but raise KeyError if D is empty</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-setdefault"><strong>setdefault</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-setdefault">setdefault</a>(k[,d]) -> D.<a href="#BaseGroups-get">get</a>(k,d), also set D[k]=d if k not in D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-update"><strong>update</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-update">update</a>(E) -> None. Update D from E: for k in E.<a href="#BaseGroups-keys">keys</a>(): D[k] = E[k]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGroups-values"><strong>values</strong></a>(...)</dt><dd><tt>D.<a href="#BaseGroups-values">values</a>() -> list of D's values</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="__builtin__.html#dict">__builtin__.dict</a>:<br>
|
|
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xa866d054><dd><tt>T.<a href="#BaseGroups-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
|
|
|
|
<dl><dt><strong>fromkeys</strong> = <built-in method fromkeys of type object at 0x3201e0><dd><tt><a href="__builtin__.html#dict">dict</a>.<a href="#BaseGroups-fromkeys">fromkeys</a>(S[,v]) -> New <a href="__builtin__.html#dict">dict</a> with keys from S and values equal to v.<br>
|
|
v defaults to None.</tt></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="BaseGuide">class <strong>BaseGuide</strong></a>(<a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for all guide objects.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BaseGuide">BaseGuide</a></dd>
|
|
<dd><a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BaseGuide-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><a name="BaseGuide-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGuide-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGuide-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this <a href="__builtin__.html#object">object</a>. Pass an <a href="__builtin__.html#object">object</a> for parenting if you want.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGuide-dump"><strong>dump</strong></a>(self, private<font color="#909090">=False</font>)</dt><dd><tt>Print a dump of this <a href="__builtin__.html#object">object</a> to the std out.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGuide-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGuide-isRobofab"><strong>isRobofab</strong></a>(self)</dt><dd><tt>Presence of this method indicates a Robofab <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGuide-naked"><strong>naked</strong></a>(self)</dt><dd><tt>Return the wrapped <a href="__builtin__.html#object">object</a> itself, in case it is needed for direct access.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseGuide-round"><strong>round</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGuide-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseGuide-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129cd90><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'RBaseObject' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>attrMap</strong> = {}</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="BaseInfo">class <strong>BaseInfo</strong></a>(<a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for all font.info objects.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BaseInfo">BaseInfo</a></dd>
|
|
<dd><a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BaseInfo-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseInfo-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseInfo-autoNaming"><strong>autoNaming</strong></a>(self, familyName<font color="#909090">=None</font>, styleName<font color="#909090">=None</font>)</dt><dd><tt>Automatically set the font naming info based on family and style names.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Properties defined here:<br>
|
|
<dl><dt><strong>ascender</strong></dt>
|
|
<dd><tt>ascender value</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_ascender">_get_ascender</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_ascender">_set_ascender</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>capHeight</strong></dt>
|
|
<dd><tt>cap height value</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_capHeight">_get_capHeight</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_capHeight">_set_capHeight</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>copyright</strong></dt>
|
|
<dd><tt>copyright</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_copyright">_get_copyright</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_copyright">_set_copyright</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>createdBy</strong></dt>
|
|
<dd><tt>source</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_createdBy">_get_createdBy</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_createdBy">_set_createdBy</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>defaultWidth</strong></dt>
|
|
<dd><tt>default width value</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_defaultWidth">_get_defaultWidth</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_defaultWidth">_set_defaultWidth</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>descender</strong></dt>
|
|
<dd><tt>descender value</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_descender">_get_descender</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_descender">_set_descender</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>designer</strong></dt>
|
|
<dd><tt>designer</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_designer">_get_designer</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_designer">_set_designer</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>designerURL</strong></dt>
|
|
<dd><tt>designer url</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_designerURL">_get_designerURL</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_designerURL">_set_designerURL</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>familyName</strong></dt>
|
|
<dd><tt>family name</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_familyName">_get_familyName</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_familyName">_set_familyName</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>fondID</strong></dt>
|
|
<dd><tt>fond id number</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_fondID">_get_fondID</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_fondID">_set_fondID</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>fondName</strong></dt>
|
|
<dd><tt>fond name</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_fondName">_get_fondName</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_fondName">_set_fondName</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>fontName</strong></dt>
|
|
<dd><tt>font name</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_fontName">_get_fontName</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_fontName">_set_fontName</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>fontStyle</strong></dt>
|
|
<dd><tt>font style</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_fontStyle">_get_fontStyle</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_fontStyle">_set_fontStyle</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>fullName</strong></dt>
|
|
<dd><tt>full name</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_fullName">_get_fullName</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_fullName">_set_fullName</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>italicAngle</strong></dt>
|
|
<dd><tt>italic_angle</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_italicAngle">_get_italicAngle</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_italicAngle">_set_italicAngle</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>license</strong></dt>
|
|
<dd><tt>license</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_license">_get_license</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_license">_set_license</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>licenseURL</strong></dt>
|
|
<dd><tt>license url</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_licenseURL">_get_licenseURL</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_licenseURL">_set_licenseURL</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>menuName</strong></dt>
|
|
<dd><tt>menu name</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_menuName">_get_menuName</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_menuName">_set_menuName</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>msCharSet</strong></dt>
|
|
<dd><tt>ms charset</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_msCharSet">_get_msCharSet</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_msCharSet">_set_msCharSet</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>note</strong></dt>
|
|
<dd><tt>note</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_note">_get_note</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_note">_set_note</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>notice</strong></dt>
|
|
<dd><tt>notice</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_notice">_get_notice</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_notice">_set_notice</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>otFamilyName</strong></dt>
|
|
<dd><tt>OpenType family name</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_otFamilyName">_get_otFamilyName</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_otFamilyName">_set_otFamilyName</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>otMacName</strong></dt>
|
|
<dd><tt>Mac specific OpenType name</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_otMacName">_get_otMacName</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_otMacName">_set_otMacName</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>otStyleName</strong></dt>
|
|
<dd><tt>OpenType style name</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_otStyleName">_get_otStyleName</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_otStyleName">_set_otStyleName</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>slantAngle</strong></dt>
|
|
<dd><tt>slant_angle</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_slantAngle">_get_slantAngle</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_slantAngle">_set_slantAngle</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>styleName</strong></dt>
|
|
<dd><tt>style name</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_styleName">_get_styleName</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_styleName">_set_styleName</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>trademark</strong></dt>
|
|
<dd><tt>trademark</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_trademark">_get_trademark</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_trademark">_set_trademark</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>ttUniqueID</strong></dt>
|
|
<dd><tt>TrueType unique id number</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_ttUniqueID">_get_ttUniqueID</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_ttUniqueID">_set_ttUniqueID</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>ttVendor</strong></dt>
|
|
<dd><tt>vendor</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_ttVendor">_get_ttVendor</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_ttVendor">_set_ttVendor</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>ttVersion</strong></dt>
|
|
<dd><tt>TrueType version</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_ttVersion">_get_ttVersion</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_ttVersion">_set_ttVersion</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>uniqueID</strong></dt>
|
|
<dd><tt>unique id number</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_uniqueID">_get_uniqueID</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_uniqueID">_set_uniqueID</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>unitsPerEm</strong></dt>
|
|
<dd><tt>unitsPerEm value</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_unitsPerEm">_get_unitsPerEm</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_unitsPerEm">_set_unitsPerEm</a>(self)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>vendorURL</strong></dt>
|
|
<dd><tt>vendor url</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_vendorURL">_get_vendorURL</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_vendorURL">_set_vendorURL</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>versionMajor</strong></dt>
|
|
<dd><tt>version major</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_versionMajor">_get_versionMajor</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_versionMajor">_set_versionMajor</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>versionMinor</strong></dt>
|
|
<dd><tt>version minor</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_versionMinor">_get_versionMinor</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_versionMinor">_set_versionMinor</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>weightName</strong></dt>
|
|
<dd><tt>weight name</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_weightName">_get_weightName</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_weightName">_set_weightName</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>weightValue</strong></dt>
|
|
<dd><tt>weight value</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_weightValue">_get_weightValue</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_weightValue">_set_weightValue</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>widthName</strong></dt>
|
|
<dd><tt>width name</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_widthName">_get_widthName</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_widthName">_set_widthName</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>xHeight</strong></dt>
|
|
<dd><tt>x height value</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_xHeight">_get_xHeight</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_xHeight">_set_xHeight</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>year</strong></dt>
|
|
<dd><tt>year</tt></dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseInfo-_get_year">_get_year</a>(self)</dt></dl>
|
|
</dd>
|
|
<dd><dl><dt><a name="BaseInfo-<em>set</em>"><strong><em>set</em></strong></a> = <a href="#BaseInfo-_set_year">_set_year</a>(self, value)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><a name="BaseInfo-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseInfo-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this <a href="__builtin__.html#object">object</a>. Pass an <a href="__builtin__.html#object">object</a> for parenting if you want.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseInfo-dump"><strong>dump</strong></a>(self, private<font color="#909090">=False</font>)</dt><dd><tt>Print a dump of this <a href="__builtin__.html#object">object</a> to the std out.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseInfo-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseInfo-isRobofab"><strong>isRobofab</strong></a>(self)</dt><dd><tt>Presence of this method indicates a Robofab <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseInfo-naked"><strong>naked</strong></a>(self)</dt><dd><tt>Return the wrapped <a href="__builtin__.html#object">object</a> itself, in case it is needed for direct access.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseInfo-round"><strong>round</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseInfo-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseInfo-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129c510><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'RBaseObject' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>attrMap</strong> = {}</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="BaseKerning">class <strong>BaseKerning</strong></a>(<a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for all kerning objects. Object behaves like a <a href="__builtin__.html#dict">dict</a> but has<br>
|
|
some special kerning specific tricks.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BaseKerning">BaseKerning</a></dd>
|
|
<dd><a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BaseKerning-__add__"><strong>__add__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-__div__"><strong>__div__</strong></a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-__getitem__"><strong>__getitem__</strong></a>(self, key)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-__init__"><strong>__init__</strong></a>(self, kerningDict<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-__mul__"><strong>__mul__</strong></a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-__rmul__"><strong>__rmul__</strong></a> = <a href="#BaseKerning-__mul__">__mul__</a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-__setitem__"><strong>__setitem__</strong></a>(self, pair, value)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-__sub__"><strong>__sub__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-add"><strong>add</strong></a>(self, value)</dt><dd><tt>add value to all kerning pairs</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-asDict"><strong>asDict</strong></a>(self, returnIntegers<font color="#909090">=True</font>)</dt><dd><tt>return the <a href="__builtin__.html#object">object</a> as a dictionary</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-clear"><strong>clear</strong></a>(self)</dt><dd><tt>clear all kerning</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-combine"><strong>combine</strong></a>(self, kerningDicts, overwriteExisting<font color="#909090">=True</font>)</dt><dd><tt>combine two or more kerning dictionaries.<br>
|
|
overwrite exsisting duplicate pairs if overwriteExisting=True</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-eliminate"><strong>eliminate</strong></a>(self, leftGlyphsToEliminate<font color="#909090">=None</font>, rightGlyphsToEliminate<font color="#909090">=None</font>, analyzeOnly<font color="#909090">=False</font>)</dt><dd><tt>eliminate pairs containing a left glyph that is in the leftGlyphsToEliminate list<br>
|
|
or a right glyph that is in the rightGlyphsToELiminate list.<br>
|
|
sideGlyphsToEliminate can be a string: 'a' or list: ['a', 'b'].<br>
|
|
analyzeOnly will not remove pairs. it will return a count<br>
|
|
of all pairs that would be removed.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-explodeClasses"><strong>explodeClasses</strong></a>(self, leftClassDict<font color="#909090">=None</font>, rightClassDict<font color="#909090">=None</font>, analyzeOnly<font color="#909090">=False</font>)</dt><dd><tt>turn class kerns into real kerning pairs. classes should<br>
|
|
be defined in dicts: {'O':['C', 'G', 'Q'], 'H':['B', 'D', 'E', 'F', 'I']}.<br>
|
|
analyzeOnly will not remove pairs. it will return a count<br>
|
|
of all pairs that would be added</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-get"><strong>get</strong></a>(self, pair, default<font color="#909090">=None</font>)</dt><dd><tt>get a value. return None if the pair does not exist</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-getAverage"><strong>getAverage</strong></a>(self)</dt><dd><tt>return average of all kerning pairs</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-getExtremes"><strong>getExtremes</strong></a>(self)</dt><dd><tt>return the lowest and highest kerning values</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-getLeft"><strong>getLeft</strong></a>(self, glyphName)</dt><dd><tt>Return a list of kerns with glyphName as left character.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-getRight"><strong>getRight</strong></a>(self, glyphName)</dt><dd><tt>Return a list of kerns with glyphName as left character.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-has_key"><strong>has_key</strong></a>(self, pair)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-implodeClasses"><strong>implodeClasses</strong></a>(self, leftClassDict<font color="#909090">=None</font>, rightClassDict<font color="#909090">=None</font>, analyzeOnly<font color="#909090">=False</font>)</dt><dd><tt>condense the number of kerning pairs by applying classes.<br>
|
|
this will eliminate all pairs containg the classed glyphs leaving<br>
|
|
pairs that contain the key glyphs behind. analyzeOnly will not<br>
|
|
remove pairs. it will return a count of all pairs that would be removed.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-importAFM"><strong>importAFM</strong></a>(self, path, clearExisting<font color="#909090">=True</font>)</dt><dd><tt>Import kerning pairs from an AFM file. clearExisting=True will<br>
|
|
clear all exising kerning</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-interpolate"><strong>interpolate</strong></a>(self, sourceDictOne, sourceDictTwo, value, clearExisting<font color="#909090">=True</font>)</dt><dd><tt>interpolate the kerning between sourceDictOne<br>
|
|
and sourceDictTwo. clearExisting will clear existing<br>
|
|
kerning first.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-items"><strong>items</strong></a>(self)</dt><dd><tt>return a list of kerning items</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-keys"><strong>keys</strong></a>(self)</dt><dd><tt>return list of kerning pairs</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-minimize"><strong>minimize</strong></a>(self, minimum<font color="#909090">=10</font>)</dt><dd><tt>eliminate pairs with value less than minimum</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-occurrenceCount"><strong>occurrenceCount</strong></a>(self, glyphsToCount)</dt><dd><tt>return a <a href="__builtin__.html#dict">dict</a> with glyphs as keys and the number of <br>
|
|
occurances of that glyph in the kerning pairs as the value<br>
|
|
glyphsToCount can be a string: 'a' or list: ['a', 'b']</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-remove"><strong>remove</strong></a>(self, pair)</dt><dd><tt>remove a kerning pair</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-round"><strong>round</strong></a>(self, multiple<font color="#909090">=10</font>)</dt><dd><tt>round the kerning pair values to increments of multiple</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-scale"><strong>scale</strong></a>(self, value)</dt><dd><tt>scale all kernng pairs by value</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-swapNames"><strong>swapNames</strong></a>(self, swapTable)</dt><dd><tt>change glyph names in all kerning pairs based on swapTable.<br>
|
|
swapTable = {'BeforeName':'AfterName', ...}</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-update"><strong>update</strong></a>(self, kerningDict)</dt><dd><tt>replace kerning data with the data in the given kerningDict</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-values"><strong>values</strong></a>(self)</dt><dd><tt>return a list of kerning values</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><a name="BaseKerning-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this <a href="__builtin__.html#object">object</a>. Pass an <a href="__builtin__.html#object">object</a> for parenting if you want.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-dump"><strong>dump</strong></a>(self, private<font color="#909090">=False</font>)</dt><dd><tt>Print a dump of this <a href="__builtin__.html#object">object</a> to the std out.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-isRobofab"><strong>isRobofab</strong></a>(self)</dt><dd><tt>Presence of this method indicates a Robofab <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-naked"><strong>naked</strong></a>(self)</dt><dd><tt>Return the wrapped <a href="__builtin__.html#object">object</a> itself, in case it is needed for direct access.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseKerning-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129c7d0><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'RBaseObject' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>attrMap</strong> = {}</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="BaseLib">class <strong>BaseLib</strong></a>(<a href="__builtin__.html#dict">__builtin__.dict</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for all lib objects<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BaseLib">BaseLib</a></dd>
|
|
<dd><a href="__builtin__.html#dict">__builtin__.dict</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BaseLib-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseLib-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this lib.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129c5f0><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'BaseLib' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="__builtin__.html#dict">__builtin__.dict</a>:<br>
|
|
<dl><dt><a name="BaseLib-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__cmp__">__cmp__</a>(y) <==> cmp(x,y)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__contains__">__contains__</a>(y) <==> y in x</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__delitem__"><strong>__delitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__delitem__">__delitem__</a>(y) <==> del x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__eq__">__eq__</a>(y) <==> x==y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__ge__">__ge__</a>(y) <==> x>=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__iter__">__iter__</a>() <==> iter(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__le__">__le__</a>(y) <==> x<=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__len__"><strong>__len__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__len__">__len__</a>() <==> len(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__lt__">__lt__</a>(y) <==> x<y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__ne__">__ne__</a>(y) <==> x!=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-__setitem__"><strong>__setitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BaseLib-__setitem__">__setitem__</a>(i, y) <==> x[i]=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-clear"><strong>clear</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-clear">clear</a>() -> None. Remove all items from D.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-get"><strong>get</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-get">get</a>(k[,d]) -> D[k] if k in D, else d. d defaults to None.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-has_key"><strong>has_key</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-has_key">has_key</a>(k) -> True if D has a key k, else False</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-items"><strong>items</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-items">items</a>() -> list of D's (key, value) pairs, as 2-tuples</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-iteritems"><strong>iteritems</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-iteritems">iteritems</a>() -> an iterator over the (key, value) items of D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-iterkeys"><strong>iterkeys</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-iterkeys">iterkeys</a>() -> an iterator over the keys of D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-itervalues"><strong>itervalues</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-itervalues">itervalues</a>() -> an iterator over the values of D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-keys"><strong>keys</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-keys">keys</a>() -> list of D's keys</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-pop"><strong>pop</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-pop">pop</a>(k[,d]) -> v, remove specified key and return the corresponding value<br>
|
|
If key is not found, d is returned if given, otherwise KeyError is raised</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-popitem"><strong>popitem</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-popitem">popitem</a>() -> (k, v), remove and return some (key, value) pair as a<br>
|
|
2-tuple; but raise KeyError if D is empty</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-setdefault"><strong>setdefault</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-setdefault">setdefault</a>(k[,d]) -> D.<a href="#BaseLib-get">get</a>(k,d), also set D[k]=d if k not in D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-update"><strong>update</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-update">update</a>(E) -> None. Update D from E: for k in E.<a href="#BaseLib-keys">keys</a>(): D[k] = E[k]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseLib-values"><strong>values</strong></a>(...)</dt><dd><tt>D.<a href="#BaseLib-values">values</a>() -> list of D's values</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="__builtin__.html#dict">__builtin__.dict</a>:<br>
|
|
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xa866d054><dd><tt>T.<a href="#BaseLib-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
|
|
|
|
<dl><dt><strong>fromkeys</strong> = <built-in method fromkeys of type object at 0x320530><dd><tt><a href="__builtin__.html#dict">dict</a>.<a href="#BaseLib-fromkeys">fromkeys</a>(S[,v]) -> New <a href="__builtin__.html#dict">dict</a> with keys from S and values equal to v.<br>
|
|
v defaults to None.</tt></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="BasePoint">class <strong>BasePoint</strong></a>(<a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for point objects.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BasePoint">BasePoint</a></dd>
|
|
<dd><a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BasePoint-__add__"><strong>__add__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BasePoint-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BasePoint-__mul__"><strong>__mul__</strong></a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BasePoint-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BasePoint-__rmul__"><strong>__rmul__</strong></a> = <a href="#BasePoint-__mul__">__mul__</a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BasePoint-__sub__"><strong>__sub__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BasePoint-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this point</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BasePoint-move"><strong>move</strong></a>(self, (x, y))</dt><dd><tt>Move the point</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BasePoint-round"><strong>round</strong></a>(self)</dt><dd><tt>round the values in the point</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BasePoint-scale"><strong>scale</strong></a>(self, (x, y), center<font color="#909090">=(0, 0)</font>)</dt><dd><tt>scale the point</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BasePoint-select"><strong>select</strong></a>(self, state<font color="#909090">=True</font>)</dt><dd><tt>Set the selection of this point.<br>
|
|
XXXX This method should be a lot more versatile, dealing with<br>
|
|
different kinds of selection, select the bcp's seperately etc.<br>
|
|
But that's for later when we need it more. For now it's just <br>
|
|
one flag for the entire thing.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BasePoint-transform"><strong>transform</strong></a>(self, matrix)</dt><dd><tt>Transform this point. Use a Transform matrix<br>
|
|
<a href="__builtin__.html#object">object</a> from fontTools.misc.transform</tt></dd></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><a name="BasePoint-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BasePoint-dump"><strong>dump</strong></a>(self, private<font color="#909090">=False</font>)</dt><dd><tt>Print a dump of this <a href="__builtin__.html#object">object</a> to the std out.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BasePoint-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BasePoint-isRobofab"><strong>isRobofab</strong></a>(self)</dt><dd><tt>Presence of this method indicates a Robofab <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="BasePoint-naked"><strong>naked</strong></a>(self)</dt><dd><tt>Return the wrapped <a href="__builtin__.html#object">object</a> itself, in case it is needed for direct access.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BasePoint-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="BasePoint-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129c850><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'RBaseObject' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>attrMap</strong> = {}</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="BaseSegment">class <strong>BaseSegment</strong></a>(<a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for all segment objects<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="robofab.objects.objectsBase.html#BaseSegment">BaseSegment</a></dd>
|
|
<dd><a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="BaseSegment-__add__"><strong>__add__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-__mul__"><strong>__mul__</strong></a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-__rmul__"><strong>__rmul__</strong></a> = <a href="#BaseSegment-__mul__">__mul__</a>(self, factor)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-__sub__"><strong>__sub__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this segment</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-move"><strong>move</strong></a>(self, (x, y))</dt><dd><tt>move the segment</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-round"><strong>round</strong></a>(self)</dt><dd><tt>round all points in the segment</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-scale"><strong>scale</strong></a>(self, (x, y), center<font color="#909090">=(0, 0)</font>)</dt><dd><tt>scale the segment</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-transform"><strong>transform</strong></a>(self, matrix)</dt><dd><tt>Transform this segment.<br>
|
|
Use a Transform matrix <a href="__builtin__.html#object">object</a> from<br>
|
|
robofab.transform</tt></dd></dl>
|
|
|
|
<hr>
|
|
Properties defined here:<br>
|
|
<dl><dt><strong>offCurve</strong></dt>
|
|
<dd><tt>on curve point for the segment</tt></dd>
|
|
<dd><dl><dt><a name="BaseSegment-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseSegment-_get_offCurve">_get_offCurve</a>(self)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><strong>onCurve</strong></dt>
|
|
<dd><tt>list of off curve points for the segment</tt></dd>
|
|
<dd><dl><dt><a name="BaseSegment-<em>get</em>"><strong><em>get</em></strong></a> = <a href="#BaseSegment-_get_onCurve">_get_onCurve</a>(self)</dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><a name="BaseSegment-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-dump"><strong>dump</strong></a>(self, private<font color="#909090">=False</font>)</dt><dd><tt>Print a dump of this <a href="__builtin__.html#object">object</a> to the std out.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-isRobofab"><strong>isRobofab</strong></a>(self)</dt><dd><tt>Presence of this method indicates a Robofab <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-naked"><strong>naked</strong></a>(self)</dt><dd><tt>Return the wrapped <a href="__builtin__.html#object">object</a> itself, in case it is needed for direct access.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="BaseSegment-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">RBaseObject</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129ca50><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'RBaseObject' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>attrMap</strong> = {}</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="FuzzyNumber">class <strong>FuzzyNumber</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%">Methods defined here:<br>
|
|
<dl><dt><a name="FuzzyNumber-__cmp__"><strong>__cmp__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="FuzzyNumber-__init__"><strong>__init__</strong></a>(self, value, threshold)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129ca30><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'FuzzyNumber' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></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="RBaseObject">class <strong>RBaseObject</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>Base class for wrapper objects<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%">Methods defined here:<br>
|
|
<dl><dt><a name="RBaseObject-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="RBaseObject-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="RBaseObject-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="RBaseObject-copy"><strong>copy</strong></a>(self, aParent<font color="#909090">=None</font>)</dt><dd><tt>Duplicate this <a href="__builtin__.html#object">object</a>. Pass an <a href="__builtin__.html#object">object</a> for parenting if you want.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="RBaseObject-dump"><strong>dump</strong></a>(self, private<font color="#909090">=False</font>)</dt><dd><tt>Print a dump of this <a href="__builtin__.html#object">object</a> to the std out.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="RBaseObject-getParent"><strong>getParent</strong></a>(self)</dt><dd><tt>this method will be overwritten with a weakref if there is a parent.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="RBaseObject-isRobofab"><strong>isRobofab</strong></a>(self)</dt><dd><tt>Presence of this method indicates a Robofab <a href="__builtin__.html#object">object</a></tt></dd></dl>
|
|
|
|
<dl><dt><a name="RBaseObject-naked"><strong>naked</strong></a>(self)</dt><dd><tt>Return the wrapped <a href="__builtin__.html#object">object</a> itself, in case it is needed for direct access.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="RBaseObject-round"><strong>round</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="RBaseObject-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="RBaseObject-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x129c950><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'RBaseObject' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>attrMap</strong> = {}</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="RoboFabInterpolationError">class <strong>RoboFabInterpolationError</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%">Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
|
<dl><dt><a name="RoboFabInterpolationError-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="RoboFabInterpolationError-__init__"><strong>__init__</strong></a>(...)</dt></dl>
|
|
|
|
<dl><dt><a name="RoboFabInterpolationError-__str__"><strong>__str__</strong></a>(...)</dt></dl>
|
|
|
|
</td></tr></table></td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#eeaa77">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt><a name="-absoluteBCPIn"><strong>absoluteBCPIn</strong></a>(anchor, BCPIn)</dt><dd><tt>convert relative incoming bcp value to an absolute value</tt></dd></dl>
|
|
<dl><dt><a name="-absoluteBCPOut"><strong>absoluteBCPOut</strong></a>(anchor, BCPOut)</dt><dd><tt>convert relative outgoing bcp value to an absolute value</tt></dd></dl>
|
|
<dl><dt><a name="-addPt"><strong>addPt</strong></a>(ptA, ptB)</dt><dd><tt>Add two vectors</tt></dd></dl>
|
|
<dl><dt><a name="-mulPt"><strong>mulPt</strong></a>(ptA, scalar)</dt><dd><tt>Multiply a vector with scalar</tt></dd></dl>
|
|
<dl><dt><a name="-relativeBCPIn"><strong>relativeBCPIn</strong></a>(anchor, BCPIn)</dt><dd><tt>convert absolute incoming bcp value to a relative value</tt></dd></dl>
|
|
<dl><dt><a name="-relativeBCPOut"><strong>relativeBCPOut</strong></a>(anchor, BCPOut)</dt><dd><tt>convert absolute outgoing bcp value to a relative value</tt></dd></dl>
|
|
<dl><dt><a name="-roundPt"><strong>roundPt</strong></a>((x, y))</dt><dd><tt>Round a vector</tt></dd></dl>
|
|
<dl><dt><a name="-subPt"><strong>subPt</strong></a>(ptA, ptB)</dt><dd><tt>Substract two vectors</tt></dd></dl>
|
|
</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>CORNER</strong> = 'corner'<br>
|
|
<strong>CURVE</strong> = 'curve'<br>
|
|
<strong>DEGREE</strong> = 57.295779513082323<br>
|
|
<strong>LINE</strong> = 'line'<br>
|
|
<strong>MOVE</strong> = 'move'<br>
|
|
<strong>OFFCURVE</strong> = 'offcurve'<br>
|
|
<strong>QCURVE</strong> = 'qcurve'<br>
|
|
<strong>generators</strong> = _Feature((2, 2, 0, 'alpha', 1), (2, 3, 0, 'final', 0), 4096)</td></tr></table>
|
|
</body></html> |