fonttools/Documentation/fontToolsDocs/fontTools.ttLib.tables.ttProgram.html
Erik van Blokland 3646055ea2 initial import
git-svn-id: http://svn.robofab.com/trunk@1 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 17:40:34 +00:00

77 lines
6.4 KiB
HTML

<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module fontTools.ttLib.tables.ttProgram</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="fontTools.html"><font color="#ffffff">fontTools</font></a>.<a href="fontTools.ttLib.html"><font color="#ffffff">ttLib</font></a>.<a href="fontTools.ttLib.tables.html"><font color="#ffffff">tables</font></a>.ttProgram</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/fontTools/Lib/fontTools/ttLib/tables/ttProgram.py">/code/fontTools/Lib/fontTools/ttLib/tables/ttProgram.py</a></font></td></tr></table>
<p><tt>ttLib.tables.ttProgram.py&nbsp;--&nbsp;Assembler/disassembler&nbsp;for&nbsp;TrueType&nbsp;bytecode&nbsp;programs.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="array.html">array</a><br>
</td><td width="25%" valign=top><a href="re.html">re</a><br>
</td><td width="25%" valign=top><a href="string.html">string</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="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="fontTools.ttLib.tables.ttProgram.html#Program">Program</a>
</font></dt></dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Program">class <strong>Program</strong></a></font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Program-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="Program-fromAssembly"><strong>fromAssembly</strong></a>(self, assembly)</dt></dl>
<dl><dt><a name="Program-fromBytecode"><strong>fromBytecode</strong></a>(self, bytecode)</dt></dl>
<dl><dt><a name="Program-fromXML"><strong>fromXML</strong></a>(self, (name, attrs, content), ttFont)</dt></dl>
<dl><dt><a name="Program-getAssembly"><strong>getAssembly</strong></a>(self)</dt></dl>
<dl><dt><a name="Program-getBytecode"><strong>getBytecode</strong></a>(self)</dt></dl>
<dl><dt><a name="Program-toXML"><strong>toXML</strong></a>(self, writer, ttFont)</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>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-bitRepr"><strong>bitRepr</strong></a>(value, bits)</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>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>instructions</strong> = [(127, 'AA', 0, 'AdjustAngle', 1, 0), (100, 'ABS', 0, 'Absolute', 1, 1), (96, 'ADD', 0, 'Add', 2, 1), (39, 'ALIGNPTS', 0, 'AlignPts', 2, 0), (60, 'ALIGNRP', 0, 'AlignRelativePt', -1, 0), (90, 'AND', 0, 'LogicalAnd', 2, 1), (43, 'CALL', 0, 'CallFunction', 1, 0), (103, 'CEILING', 0, 'Ceiling', 1, 1), (37, 'CINDEX', 0, 'CopyXToTopStack', 1, 1), (34, 'CLEAR', 0, 'ClearStack', -1, 0), (79, 'DEBUG', 0, 'DebugCall', 1, 0), (115, 'DELTAC1', 0, 'DeltaExceptionC1', -1, 0), (116, 'DELTAC2', 0, 'DeltaExceptionC2', -1, 0), (117, 'DELTAC3', 0, 'DeltaExceptionC3', -1, 0), (93, 'DELTAP1', 0, 'DeltaExceptionP1', -1, 0), (113, 'DELTAP2', 0, 'DeltaExceptionP2', -1, 0), (114, 'DELTAP3', 0, 'DeltaExceptionP3', -1, 0), (36, 'DEPTH', 0, 'GetDepthStack', 0, 1), (98, 'DIV', 0, 'Divide', 2, 1), (32, 'DUP', 0, 'DuplicateTopStack', 1, 2), ...]<br>
<strong>mnemonicDict</strong> = {'AA': (127, 0, 'AdjustAngle'), 'ABS': (100, 0, 'Absolute'), 'ADD': (96, 0, 'Add'), 'ALIGNPTS': (39, 0, 'AlignPts'), 'ALIGNRP': (60, 0, 'AlignRelativePt'), 'AND': (90, 0, 'LogicalAnd'), 'CALL': (43, 0, 'CallFunction'), 'CEILING': (103, 0, 'Ceiling'), 'CINDEX': (37, 0, 'CopyXToTopStack'), 'CLEAR': (34, 0, 'ClearStack'), ...}<br>
<strong>opcodeDict</strong> = {0: ('SVTCA', 1, 0, 'SetFPVectorToAxis'), 1: ('SVTCA', 1, 0, 'SetFPVectorToAxis'), 2: ('SPVTCA', 1, 2, 'SetPVectorToAxis'), 3: ('SPVTCA', 1, 2, 'SetPVectorToAxis'), 4: ('SFVTCA', 1, 4, 'SetFVectorToAxis'), 5: ('SFVTCA', 1, 4, 'SetFVectorToAxis'), 6: ('SPVTL', 1, 6, 'SetPVectorToLine'), 7: ('SPVTL', 1, 6, 'SetPVectorToLine'), 8: ('SFVTL', 1, 8, 'SetFVectorToLine'), 9: ('SFVTL', 1, 8, 'SetFVectorToLine'), ...}<br>
<strong>streamInstructions</strong> = [(64, 'NPUSHB', 0, 'PushNBytes', 0, -1), (65, 'NPUSHW', 0, 'PushNWords', 0, -1), (176, 'PUSHB', 3, 'PushBytes', 0, -1), (184, 'PUSHW', 3, 'PushWords', 0, -1)]<br>
<strong>streamMnemonicDict</strong> = {'NPUSHB': (64, 0, 'PushNBytes'), 'NPUSHW': (65, 0, 'PushNWords'), 'PUSHB': (176, 3, 'PushBytes'), 'PUSHW': (184, 3, 'PushWords')}<br>
<strong>streamOpcodeDict</strong> = {64: ('NPUSHB', 0, 0, 'PushNBytes'), 65: ('NPUSHW', 0, 0, 'PushNWords'), 176: ('PUSHB', 3, 176, 'PushBytes'), 177: ('PUSHB', 3, 176, 'PushBytes'), 178: ('PUSHB', 3, 176, 'PushBytes'), 179: ('PUSHB', 3, 176, 'PushBytes'), 180: ('PUSHB', 3, 176, 'PushBytes'), 181: ('PUSHB', 3, 176, 'PushBytes'), 182: ('PUSHB', 3, 176, 'PushBytes'), 183: ('PUSHB', 3, 176, 'PushBytes'), ...}<br>
<strong>tt_instructions_error</strong> = 'TT instructions error'</td></tr></table>
</body></html>