131 lines
8.2 KiB
HTML
131 lines
8.2 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module fontTools.ttx</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="fontTools.html"><font color="#ffffff">fontTools</font></a>.ttx</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/ttx.py">/code/fontTools/Lib/fontTools/ttx.py</a></font></td></tr></table>
|
|
<p><tt>usage: ttx [options] inputfile1 [... inputfileN]<br>
|
|
<br>
|
|
TTX %s -- From OpenType To XML And Back<br>
|
|
<br>
|
|
If an input file is a TrueType or OpenType font file, it will be<br>
|
|
dumped to an TTX file (an XML-based text format).<br>
|
|
If an input file is a TTX file, it will be compiled to a TrueType<br>
|
|
or OpenType font file.<br>
|
|
<br>
|
|
Output files are created so they are unique: an existing file is<br>
|
|
never overwrritten.<br>
|
|
<br>
|
|
General options:<br>
|
|
-h Help: print this message<br>
|
|
-d <outputfolder> Specify a directory where the output files are<br>
|
|
to be created.<br>
|
|
-v Verbose: more messages will be written to stdout about what<br>
|
|
is being done.<br>
|
|
<br>
|
|
Dump options:<br>
|
|
-l List table info: instead of dumping to a TTX file, list some<br>
|
|
minimal info about each table.<br>
|
|
-t <table> Specify a table to dump. Multiple -t options<br>
|
|
are allowed. When no -t option is specified, all tables<br>
|
|
will be dumped.<br>
|
|
-x <table> Specify a table to exclude from the dump. Multiple<br>
|
|
-x options are allowed. -t and -x are mutually exclusive.<br>
|
|
-s Split tables: save the TTX data into separate TTX files per<br>
|
|
table and write one small TTX file that contains references<br>
|
|
to the individual table dumps. This file can be used as<br>
|
|
input to ttx, as long as the table files are in the<br>
|
|
same directory.<br>
|
|
-i Do NOT disassemble TT instructions: when this option is given,<br>
|
|
all TrueType programs (glyph programs, the font program and the<br>
|
|
pre-program) will be written to the TTX file as hex data<br>
|
|
instead of assembly. This saves some time and makes the TTX<br>
|
|
file smaller.<br>
|
|
<br>
|
|
Compile options:<br>
|
|
-m Merge with TrueType-input-file: specify a TrueType or OpenType<br>
|
|
font file to be merged with the TTX file. This option is only<br>
|
|
valid when at most one TTX file is specified.<br>
|
|
-b Don't recalc glyph boundig boxes: use the values in the TTX<br>
|
|
file as-is.</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="getopt.html">getopt</a><br>
|
|
</td><td width="25%" valign=top><a href="os.html">os</a><br>
|
|
</td><td width="25%" valign=top><a href="re.html">re</a><br>
|
|
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
|
</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="fontTools.ttx.html#Options">Options</a>
|
|
</font></dt></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="Options">class <strong>Options</strong></a></font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%">Methods defined here:<br>
|
|
<dl><dt><a name="Options-__init__"><strong>__init__</strong></a>(self, rawOptions, numFiles)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>disassembleInstructions</strong> = 1</dl>
|
|
|
|
<dl><dt><strong>listTables</strong> = 0</dl>
|
|
|
|
<dl><dt><strong>mergeFile</strong> = None</dl>
|
|
|
|
<dl><dt><strong>outputDir</strong> = None</dl>
|
|
|
|
<dl><dt><strong>recalcBBoxes</strong> = 1</dl>
|
|
|
|
<dl><dt><strong>splitTables</strong> = 0</dl>
|
|
|
|
<dl><dt><strong>verbose</strong> = 0</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="-guessFileType"><strong>guessFileType</strong></a>(fileName)</dt></dl>
|
|
<dl><dt><a name="-main"><strong>main</strong></a>(args)</dt></dl>
|
|
<dl><dt><a name="-makeOutputFileName"><strong>makeOutputFileName</strong></a>(input, outputDir, extension)</dt></dl>
|
|
<dl><dt><a name="-parseOptions"><strong>parseOptions</strong></a>(args)</dt></dl>
|
|
<dl><dt><a name="-process"><strong>process</strong></a>(jobs, options)</dt></dl>
|
|
<dl><dt><a name="-ttCompile"><strong>ttCompile</strong></a>(input, output, options)</dt></dl>
|
|
<dl><dt><a name="-ttDump"><strong>ttDump</strong></a>(input, output, options)</dt></dl>
|
|
<dl><dt><a name="-ttList"><strong>ttList</strong></a>(input, output, options)</dt></dl>
|
|
<dl><dt><a name="-usage"><strong>usage</strong></a>()</dt></dl>
|
|
<dl><dt><a name="-waitForKeyPress"><strong>waitForKeyPress</strong></a>()</dt><dd><tt>Force the DOS Prompt window to stay open so the user gets<br>
|
|
a chance to see what's wrong.</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>have_broken_macsupport</strong> = 0<br>
|
|
<strong>numberAddedRE</strong> = <_sre.SRE_Pattern object at 0x172ed20><br>
|
|
<strong>version</strong> = '2.0b2'</td></tr></table>
|
|
</body></html> |