192 lines
12 KiB
HTML
192 lines
12 KiB
HTML
|
|
||
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
|
<html><head><title>Python: module robofab.objects.family</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>.family</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/family.py">/code/projects/robofab/Lib/robofab/objects/family.py</a></font></td></tr></table>
|
||
|
<p><tt>This module has been deprecated.</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="os.html">os</a><br>
|
||
|
</td><td width="25%" valign=top><a href="weakref.html">weakref</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="robofab.objects.objectsBase.html#RBaseObject">robofab.objects.objectsBase.RBaseObject</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
|
||
|
</font></dt><dd>
|
||
|
<dl>
|
||
|
<dt><font face="helvetica, arial"><a href="robofab.objects.family.html#RFamily">RFamily</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.family.html#FamilyReader">FamilyReader</a>
|
||
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.objects.family.html#FamilyWriter">FamilyWriter</a>
|
||
|
</font></dt></dl>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p>
|
||
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||
|
<tr bgcolor="#ffc8d8">
|
||
|
<td colspan=3 valign=bottom> <br>
|
||
|
<font color="#000000" face="helvetica, arial"><a name="FamilyReader">class <strong>FamilyReader</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>A reader that reads all info from a .uff<br> </tt></td></tr>
|
||
|
<tr><td> </td>
|
||
|
<td width="100%">Methods defined here:<br>
|
||
|
<dl><dt><a name="FamilyReader-__init__"><strong>__init__</strong></a>(self, path)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="FamilyReader-getSharedPath"><strong>getSharedPath</strong></a>(self)</dt><dd><tt>Return the path of all shared values in the family,<br>
|
||
|
rather then create a new instance for it.</tt></dd></dl>
|
||
|
|
||
|
<dl><dt><a name="FamilyReader-readFontsContents"><strong>readFontsContents</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="FamilyReader-readLib"><strong>readLib</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="FamilyReader-readMetaInfo"><strong>readMetaInfo</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<hr>
|
||
|
Data and other attributes defined here:<br>
|
||
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x13fbab0><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
||
|
|
||
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'FamilyReader' 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="FamilyWriter">class <strong>FamilyWriter</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>a writer that builds all the necessary family stuff.<br> </tt></td></tr>
|
||
|
<tr><td> </td>
|
||
|
<td width="100%">Methods defined here:<br>
|
||
|
<dl><dt><a name="FamilyWriter-__init__"><strong>__init__</strong></a>(self, path)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="FamilyWriter-getSharedGlyphSet"><strong>getSharedGlyphSet</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="FamilyWriter-makeFontsPath"><strong>makeFontsPath</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="FamilyWriter-makeSharedPath"><strong>makeSharedPath</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="FamilyWriter-writeFontsContents"><strong>writeFontsContents</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="FamilyWriter-writeLib"><strong>writeLib</strong></a>(self, libDict)</dt></dl>
|
||
|
|
||
|
<hr>
|
||
|
Data and other attributes defined here:<br>
|
||
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x13fba90><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
||
|
|
||
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'FamilyWriter' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
||
|
|
||
|
<dl><dt><strong>fileCreator</strong> = 'org.robofab.uffLib'</dl>
|
||
|
|
||
|
<dl><dt><strong>formatVersion</strong> = 1</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="RFamily">class <strong>RFamily</strong></a>(<a href="robofab.objects.objectsBase.html#RBaseObject">robofab.objects.objectsBase.RBaseObject</a>)</font></td></tr>
|
||
|
|
||
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||
|
<td colspan=2><tt>Sketch for Family, the font superstructure.<br>
|
||
|
This should ultimately move to objectsRF<br>
|
||
|
<br>
|
||
|
The shared fontinfo and glyphset is just another font, named 'shared',<br>
|
||
|
this avoids duplication of a lot of functionality in maintaining<br>
|
||
|
the shared glyphset, reading, writing etc.<br> </tt></td></tr>
|
||
|
<tr><td> </td>
|
||
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
||
|
<dd><a href="robofab.objects.family.html#RFamily">RFamily</a></dd>
|
||
|
<dd><a href="robofab.objects.objectsBase.html#RBaseObject">robofab.objects.objectsBase.RBaseObject</a></dd>
|
||
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
||
|
</dl>
|
||
|
<hr>
|
||
|
Methods defined here:<br>
|
||
|
<dl><dt><a name="RFamily-__contains__"><strong>__contains__</strong></a> = <a href="#RFamily-has_key">has_key</a>(self, key)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="RFamily-__getitem__"><strong>__getitem__</strong></a>(self, fontKey)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="RFamily-__init__"><strong>__init__</strong></a>(self, path<font color="#909090">=None</font>)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="RFamily-__len__"><strong>__len__</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="RFamily-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="RFamily-__setitem__"><strong>__setitem__</strong></a>(self, key, fontObject)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="RFamily-has_key"><strong>has_key</strong></a>(self, key)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="RFamily-keys"><strong>keys</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="RFamily-save"><strong>save</strong></a>(self, destDir<font color="#909090">=None</font>, doProgress<font color="#909090">=False</font>)</dt></dl>
|
||
|
|
||
|
<hr>
|
||
|
Methods inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">robofab.objects.objectsBase.RBaseObject</a>:<br>
|
||
|
<dl><dt><a name="RFamily-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="RFamily-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="RFamily-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="RFamily-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="RFamily-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="RFamily-round"><strong>round</strong></a>(self)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="RFamily-setChanged"><strong>setChanged</strong></a>(self, state<font color="#909090">=True</font>)</dt></dl>
|
||
|
|
||
|
<dl><dt><a name="RFamily-setParent"><strong>setParent</strong></a>(self, parent)</dt></dl>
|
||
|
|
||
|
<hr>
|
||
|
Data and other attributes inherited from <a href="robofab.objects.objectsBase.html#RBaseObject">robofab.objects.objectsBase.RBaseObject</a>:<br>
|
||
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x13fbab0><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></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="-makeUFFName"><strong>makeUFFName</strong></a>(familyName)</dt></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>FAMILY_EXTENSION</strong> = '.uff'<br>
|
||
|
<strong>FONTSCONTENTS_FILENAME</strong> = 'contents.plist'<br>
|
||
|
<strong>FONTS_DIRNAME</strong> = 'fonts'<br>
|
||
|
<strong>FONT_EXTENSION</strong> = '.ufo'<br>
|
||
|
<strong>LIB_FILENAME</strong> = 'lib.plist'<br>
|
||
|
<strong>METAINFO_FILENAME</strong> = 'metainfo.plist'<br>
|
||
|
<strong>SHARED_DIRNAME</strong> = 'shared'<br>
|
||
|
<strong>__warningregistry__</strong> = {('family.py is deprecated.', <class exceptions.DeprecationWarning at 0x370c0>, 4): 1}<br>
|
||
|
<strong>fontInfoAttrs</strong> = ['familyName', 'styleName', 'fullName', 'fontName', 'menuName', 'fontStyle', 'note', 'versionMajor', 'versionMinor', 'year', 'copyright', 'notice', 'trademark', 'license', 'licenseURL', 'createdBy', 'designer', 'designerURL', 'vendorURL', 'unitsPerEm', ...]</td></tr></table>
|
||
|
</body></html>
|