72 lines
5.2 KiB
HTML
72 lines
5.2 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: package robofab.features</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>.features</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/features/__init__.py">/code/projects/robofab/Lib/robofab/features/__init__.py</a></font></td></tr></table>
|
|
<p><tt>Directory for all feature like code.<br>
|
|
<br>
|
|
<br>
|
|
Features should (for now) be stored in the <br>
|
|
font lib at the keys listed below.<br>
|
|
<br>
|
|
<br>
|
|
SUBSTITUTION:<br>
|
|
- lib key: org.robofab.features.substitute<br>
|
|
- object type: dict<br>
|
|
- required data:<br>
|
|
-'name': string value; the name of the feature.<br>
|
|
-'type': string value; the type of the lookup. refer to substitute.py for registered types.<br>
|
|
-'substitution': depends on type of lookup. refer to substitute.py for structure.<br>
|
|
- optional data:<br>
|
|
-'on': bool value; the default status of the feature.<br>
|
|
<br>
|
|
POSITION:<br>
|
|
- lib key: org.robofab.features.position<br>
|
|
- object type: dict<br>
|
|
- required data:<br>
|
|
-'name': string value; the name of the feature.<br>
|
|
-'type': string value; the type of the lookup. refer to position.py for registered types.<br>
|
|
-'positioning': depends on type of lookup. refer to position.py for structure.<br>
|
|
-'positionsX': bool value; lookup does x coordinate positioning<br>
|
|
-'positionsY': bool value; lookup does y coordinate positioning<br>
|
|
- optional data:<br>
|
|
-'on': bool value; the default status of the feature.</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="#ffffff" face="helvetica, arial"><big><strong>Package Contents</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="robofab.features.featureTools.html">featureTools</a><br>
|
|
</td><td width="25%" valign=top><a href="robofab.features.position.html">position</a><br>
|
|
</td><td width="25%" valign=top><a href="robofab.features.substitute.html">substitute</a><br>
|
|
</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="#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="-readFeatures"><strong>readFeatures</strong></a>(aFont)</dt><dd><tt>Read the features from a font.lib and (if any)<br>
|
|
put them in an dict in the font.</tt></dd></dl>
|
|
<dl><dt><a name="-writeFeatures"><strong>writeFeatures</strong></a>(aFont)</dt><dd><tt>Write the features in aFont.features back to the font.lib.</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>PAIR_OFFSET</strong> = 'pair_offset'<br>
|
|
<strong>POS_LIB_KEY</strong> = 'org.robofab.features.positioning'<br>
|
|
<strong>SUB_LIB_KEY</strong> = 'org.robofab.features.substitute'<br>
|
|
<strong>optionalPositioningAttrs</strong> = ['on']<br>
|
|
<strong>optionalSubstitutionAttrs</strong> = ['on']</td></tr></table>
|
|
</body></html> |