fonttools/Documentation/fontToolsDocs/fontTools.ttLib.tables._g_l_y_f.html

196 lines
11 KiB
HTML
Raw Normal View History

<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module fontTools.ttLib.tables._g_l_y_f</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>._g_l_y_f</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/_g_l_y_f.py">/code/fontTools/Lib/fontTools/ttLib/tables/_g_l_y_f.py</a></font></td></tr></table>
<p><tt>_g_l_y_f.py&nbsp;--&nbsp;Converter&nbsp;classes&nbsp;for&nbsp;the&nbsp;'glyf'&nbsp;table.</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="fontTools.ttLib.tables.DefaultTable.html">fontTools.ttLib.tables.DefaultTable</a><br>
<a href="Numeric.html">Numeric</a><br>
</td><td width="25%" valign=top><a href="array.html">array</a><br>
<a href="sstruct.html">sstruct</a><br>
</td><td width="25%" valign=top><a href="struct.html">struct</a><br>
<a href="fontTools.ttLib.html">fontTools.ttLib</a><br>
</td><td width="25%" valign=top><a href="fontTools.ttLib.tables.ttProgram.html">fontTools.ttLib.tables.ttProgram</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>&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.DefaultTable.html#DefaultTable">fontTools.ttLib.tables.DefaultTable.DefaultTable</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="fontTools.ttLib.tables._g_l_y_f.html#table__g_l_y_f">table__g_l_y_f</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="fontTools.ttLib.tables._g_l_y_f.html#Glyph">Glyph</a>
</font></dt><dt><font face="helvetica, arial"><a href="fontTools.ttLib.tables._g_l_y_f.html#GlyphComponent">GlyphComponent</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="Glyph">class <strong>Glyph</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="Glyph-__cmp__"><strong>__cmp__</strong></a>(self, other)</dt></dl>
<dl><dt><a name="Glyph-__getitem__"><strong>__getitem__</strong></a>(self, componentIndex)</dt></dl>
<dl><dt><a name="Glyph-__init__"><strong>__init__</strong></a>(self, data<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="Glyph-compact"><strong>compact</strong></a>(self, glyfTable, recalcBBoxes<font color="#909090">=1</font>)</dt></dl>
<dl><dt><a name="Glyph-compile"><strong>compile</strong></a>(self, glyfTable, recalcBBoxes<font color="#909090">=1</font>)</dt></dl>
<dl><dt><a name="Glyph-compileComponents"><strong>compileComponents</strong></a>(self, glyfTable)</dt></dl>
<dl><dt><a name="Glyph-compileCoordinates"><strong>compileCoordinates</strong></a>(self)</dt></dl>
<dl><dt><a name="Glyph-decompileComponents"><strong>decompileComponents</strong></a>(self, data, glyfTable)</dt></dl>
<dl><dt><a name="Glyph-decompileCoordinates"><strong>decompileCoordinates</strong></a>(self, data)</dt></dl>
<dl><dt><a name="Glyph-decompileCoordinatesRaw"><strong>decompileCoordinatesRaw</strong></a>(self, nCoordinates, data)</dt></dl>
<dl><dt><a name="Glyph-expand"><strong>expand</strong></a>(self, glyfTable)</dt></dl>
<dl><dt><a name="Glyph-fromXML"><strong>fromXML</strong></a>(self, (name, attrs, content), ttFont)</dt></dl>
<dl><dt><a name="Glyph-getCompositeMaxpValues"><strong>getCompositeMaxpValues</strong></a>(self, glyfTable, maxComponentDepth<font color="#909090">=1</font>)</dt></dl>
<dl><dt><a name="Glyph-getCoordinates"><strong>getCoordinates</strong></a>(self, glyfTable)</dt></dl>
<dl><dt><a name="Glyph-getMaxpValues"><strong>getMaxpValues</strong></a>(self)</dt></dl>
<dl><dt><a name="Glyph-isComposite"><strong>isComposite</strong></a>(self)</dt></dl>
<dl><dt><a name="Glyph-recalcBounds"><strong>recalcBounds</strong></a>(self, glyfTable)</dt></dl>
<dl><dt><a name="Glyph-toXML"><strong>toXML</strong></a>(self, writer, ttFont)</dt></dl>
</td></tr></table> <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="GlyphComponent">class <strong>GlyphComponent</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="GlyphComponent-__cmp__"><strong>__cmp__</strong></a>(self, other)</dt></dl>
<dl><dt><a name="GlyphComponent-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="GlyphComponent-compile"><strong>compile</strong></a>(self, more, haveInstructions, glyfTable)</dt></dl>
<dl><dt><a name="GlyphComponent-decompile"><strong>decompile</strong></a>(self, data, glyfTable)</dt></dl>
<dl><dt><a name="GlyphComponent-fromXML"><strong>fromXML</strong></a>(self, (name, attrs, content), ttFont)</dt></dl>
<dl><dt><a name="GlyphComponent-getComponentInfo"><strong>getComponentInfo</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;base&nbsp;glyph&nbsp;name&nbsp;and&nbsp;a&nbsp;transform.</tt></dd></dl>
<dl><dt><a name="GlyphComponent-toXML"><strong>toXML</strong></a>(self, writer, ttFont)</dt></dl>
</td></tr></table> <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="table__g_l_y_f">class <strong>table__g_l_y_f</strong></a>(<a href="fontTools.ttLib.tables.DefaultTable.html#DefaultTable">fontTools.ttLib.tables.DefaultTable.DefaultTable</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="table__g_l_y_f-__contains__"><strong>__contains__</strong></a> = <a href="#table__g_l_y_f-has_key">has_key</a>(self, glyphName)</dt></dl>
<dl><dt><a name="table__g_l_y_f-__delitem__"><strong>__delitem__</strong></a>(self, glyphName)</dt></dl>
<dl><dt><a name="table__g_l_y_f-__getitem__"><strong>__getitem__</strong></a>(self, glyphName)</dt></dl>
<dl><dt><a name="table__g_l_y_f-__len__"><strong>__len__</strong></a>(self)</dt></dl>
<dl><dt><a name="table__g_l_y_f-__setitem__"><strong>__setitem__</strong></a>(self, glyphName, glyph)</dt></dl>
<dl><dt><a name="table__g_l_y_f-compile"><strong>compile</strong></a>(self, ttFont)</dt></dl>
<dl><dt><a name="table__g_l_y_f-decompile"><strong>decompile</strong></a>(self, data, ttFont)</dt></dl>
<dl><dt><a name="table__g_l_y_f-fromXML"><strong>fromXML</strong></a>(self, (name, attrs, content), ttFont)</dt></dl>
<dl><dt><a name="table__g_l_y_f-getGlyphID"><strong>getGlyphID</strong></a>(self, glyphName)</dt></dl>
<dl><dt><a name="table__g_l_y_f-getGlyphName"><strong>getGlyphName</strong></a>(self, glyphID)</dt></dl>
<dl><dt><a name="table__g_l_y_f-has_key"><strong>has_key</strong></a>(self, glyphName)</dt></dl>
<dl><dt><a name="table__g_l_y_f-keys"><strong>keys</strong></a>(self)</dt></dl>
<dl><dt><a name="table__g_l_y_f-setGlyphOrder"><strong>setGlyphOrder</strong></a>(self, glyphOrder)</dt></dl>
<dl><dt><a name="table__g_l_y_f-toXML"><strong>toXML</strong></a>(self, writer, ttFont, progress<font color="#909090">=None</font>)</dt></dl>
<hr>
Methods inherited from <a href="fontTools.ttLib.tables.DefaultTable.html#DefaultTable">fontTools.ttLib.tables.DefaultTable.DefaultTable</a>:<br>
<dl><dt><a name="table__g_l_y_f-__cmp__"><strong>__cmp__</strong></a>(self, other)</dt></dl>
<dl><dt><a name="table__g_l_y_f-__init__"><strong>__init__</strong></a>(self, tag)</dt></dl>
<dl><dt><a name="table__g_l_y_f-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="fontTools.ttLib.tables.DefaultTable.html#DefaultTable">fontTools.ttLib.tables.DefaultTable.DefaultTable</a>:<br>
<dl><dt><strong>dependencies</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>&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="-reprflag"><strong>reprflag</strong></a>(flag)</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>ARGS_ARE_XY_VALUES</strong> = 2<br>
<strong>ARG_1_AND_2_ARE_WORDS</strong> = 1<br>
<strong>MORE_COMPONENTS</strong> = 32<br>
<strong>NON_OVERLAPPING</strong> = 16<br>
<strong>OVERLAP_COMPOUND</strong> = 1024<br>
<strong>ROUND_XY_TO_GRID</strong> = 4<br>
<strong>SCALED_COMPONENT_OFFSET</strong> = 2048<br>
<strong>SCALE_COMPONENT_OFFSET_DEFAULT</strong> = 0<br>
<strong>UNSCALED_COMPONENT_OFFSET</strong> = 4096<br>
<strong>USE_MY_METRICS</strong> = 512<br>
<strong>WE_HAVE_AN_X_AND_Y_SCALE</strong> = 64<br>
<strong>WE_HAVE_A_SCALE</strong> = 8<br>
<strong>WE_HAVE_A_TWO_BY_TWO</strong> = 128<br>
<strong>WE_HAVE_INSTRUCTIONS</strong> = 256<br>
<strong>flagOnCurve</strong> = 1<br>
<strong>flagRepeat</strong> = 8<br>
<strong>flagReserved1</strong> = 64<br>
<strong>flagReserved2</strong> = 128<br>
<strong>flagXShort</strong> = 2<br>
<strong>flagXsame</strong> = 16<br>
<strong>flagYShort</strong> = 4<br>
<strong>flagYsame</strong> = 32<br>
<strong>glyphHeaderFormat</strong> = '<font color="#c040c0">\n\t\t</font>&gt;<font color="#c040c0">\t</font># big endian<font color="#c040c0">\n\t\t</font>numberOfContours:<font color="#c040c0">\t</font>h<font color="#c040c0">\n\t\t</font>xMin:<font color="#c040c0">\t\t\t\t</font>h<font color="#c040c0">\n\t\t</font>yMin:<font color="#c040c0">\t\t\t\t</font>h<font color="#c040c0">\n\t\t</font>xMax:<font color="#c040c0">\t\t\t\t</font>h<font color="#c040c0">\n\t\t</font>yMax:<font color="#c040c0">\t\t\t\t</font>h<font color="#c040c0">\n</font>'</td></tr></table>
</body></html>