

<a name="fontgate.fgFont"></a>

# `fgFont`


<dt class="class"><h2><span class="class-name">fontgate.fgFont</span> = <a name="fontgate.fgFont" href="#fontgate.fgFont">class fgFont</a>(<a href="./__builtin__.html#object">object</a>)</h2></dt><dd class="class"><dd>


<pre class="doc" markdown="0">Font representation

Constructors:
  fgFont() - create new empty font
  fgFont('font_name') -  - create new empty font with name 'font_name'</pre>


</dd><h4 class="head-methods">Methods </h4><dl class="function"><dt><a name="fgFont-__add__" href="#fgFont-__add__"><span class="function-name">__add__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__add__">__add__</a>(y) <==> x+y</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__cmp__" href="#fgFont-__cmp__"><span class="function-name">__cmp__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__cmp__">__cmp__</a>(y) <==> cmp(x,y)</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__delattr__" href="#fgFont-__delattr__"><span class="function-name">__delattr__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__delattr__">__delattr__</a>('name') <==> del x.name</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__delitem__" href="#fgFont-__delitem__"><span class="function-name">__delitem__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__delitem__">__delitem__</a>(y) <==> del x[y]</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__delslice__" href="#fgFont-__delslice__"><span class="function-name">__delslice__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__delslice__">__delslice__</a>(i, j) <==> del x[i:j]

Use of negative indices is not supported.</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__getattribute__" href="#fgFont-__getattribute__"><span class="function-name">__getattribute__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__getattribute__">__getattribute__</a>('name') <==> x.name</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__getitem__" href="#fgFont-__getitem__"><span class="function-name">__getitem__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__getitem__">__getitem__</a>(y) <==> x[y]</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__getslice__" href="#fgFont-__getslice__"><span class="function-name">__getslice__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__getslice__">__getslice__</a>(i, j) <==> x[i:j]

Use of negative indices is not supported.</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__init__" href="#fgFont-__init__"><span class="function-name">__init__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__len__" href="#fgFont-__len__"><span class="function-name">__len__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__len__">__len__</a>() <==> len(x)</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__mul__" href="#fgFont-__mul__"><span class="function-name">__mul__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__mul__">__mul__</a>(n) <==> x*n</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__repr__" href="#fgFont-__repr__"><span class="function-name">__repr__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__repr__">__repr__</a>() <==> repr(x)</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__rmul__" href="#fgFont-__rmul__"><span class="function-name">__rmul__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__rmul__">__rmul__</a>(n) <==> n*x</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__setattr__" href="#fgFont-__setattr__"><span class="function-name">__setattr__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__setattr__">__setattr__</a>('name', value) <==> x.name = value</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__setitem__" href="#fgFont-__setitem__"><span class="function-name">__setitem__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__setitem__">__setitem__</a>(i, y) <==> x[i]=y</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-__setslice__" href="#fgFont-__setslice__"><span class="function-name">__setslice__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgFont-__setslice__">__setslice__</a>(i, j, y) <==> x[i:j]=y

Use  of negative indices is not supported.</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-addGlyph" href="#fgFont-addGlyph"><span class="function-name">addGlyph</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">fgGlyph <a href="#fontgate.fgFont-addGlyph">addGlyph</a>(fgGlyph)</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-appendFeatures" href="#fgFont-appendFeatures"><span class="function-name">appendFeatures</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">int <a href="#fontgate.fgFont-appendFeatures">appendFeatures</a>()</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-averageHeight" href="#fgFont-averageHeight"><span class="function-name">averageHeight</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">float <a href="#fontgate.fgFont-averageHeight">averageHeight</a>()</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-averageWidth" href="#fgFont-averageWidth"><span class="function-name">averageWidth</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">float <a href="#fontgate.fgFont-averageWidth">averageWidth</a>()</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-boundingBox" href="#fgFont-boundingBox"><span class="function-name">boundingBox</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">fgRect <a href="#fontgate.fgFont-boundingBox">boundingBox</a>(fgMatrix)</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-calculateSafeZones" href="#fgFont-calculateSafeZones"><span class="function-name">calculateSafeZones</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">?</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-checkMaps" href="#fgFont-checkMaps"><span class="function-name">checkMaps</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgFont-checkMaps">checkMaps</a>()</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-clearGlyphs" href="#fgFont-clearGlyphs"><span class="function-name">clearGlyphs</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgFont-clearGlyphs">clearGlyphs</a>() - remove all glyphs</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-clearMaps" href="#fgFont-clearMaps"><span class="function-name">clearMaps</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgFont-clearMaps">clearMaps</a>() - force clear all font internal caches</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-copyFrom" href="#fgFont-copyFrom"><span class="function-name">copyFrom</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgFont-copyFrom">copyFrom</a>(fgFont sourceFont) - copy all data and glyphs from source font</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-createGlyph" href="#fgFont-createGlyph"><span class="function-name">createGlyph</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">fgGlyph <a href="#fontgate.fgFont-createGlyph">createGlyph</a>('name'[, int unicode[, bool clearExisting = false]])</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-dropHintingTables" href="#fgFont-dropHintingTables"><span class="function-name">dropHintingTables</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgFont-dropHintingTables">dropHintingTables</a>()</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-dropLayoutTables" href="#fgFont-dropLayoutTables"><span class="function-name">dropLayoutTables</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgFont-dropLayoutTables">dropLayoutTables</a>()</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-fixOrdering" href="#fgFont-fixOrdering"><span class="function-name">fixOrdering</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool <a href="#fontgate.fgFont-fixOrdering">fixOrdering</a>(float upm[, sortMethod='sortUnicode']) - sort glyphs by selected method. Methods are 'sortNone', 'sortName', 'sortUnicode', 'sortIndex', 'sortIndexReverse'</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-hasColors" href="#fgFont-hasColors"><span class="function-name">hasColors</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool <a href="#fontgate.fgFont-hasColors">hasColors</a>()</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-hasPictures" href="#fgFont-hasPictures"><span class="function-name">hasPictures</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool <a href="#fontgate.fgFont-hasPictures">hasPictures</a>()</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-has_key" href="#fgFont-has_key"><span class="function-name">has_key</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool <a href="#fontgate.fgFont-has_key">has_key</a>('name') - return true if font contains glyph with name 'name'</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-items" href="#fgFont-items"><span class="function-name">items</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">[('name', fgGlyph)] <a href="#fontgate.fgFont-items">items</a>() - returns a list of font's ('name', fgGlyph) tuple pairs</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-keys" href="#fgFont-keys"><span class="function-name">keys</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">['names'] <a href="#fontgate.fgFont-keys">keys</a>() - return list of names of all glyphs in the font</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-killUnicode" href="#fgFont-killUnicode"><span class="function-name">killUnicode</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgFont-killUnicode">killUnicode</a>(unicode) - remove selected unicode from all glyph unicodes lists</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-rebuildMaps" href="#fgFont-rebuildMaps"><span class="function-name">rebuildMaps</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgFont-rebuildMaps">rebuildMaps</a>() - force clear and rebuild all font internal caches</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-removeGlyph" href="#fgFont-removeGlyph"><span class="function-name">removeGlyph</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool/Nothing <a href="#fontgate.fgFont-removeGlyph">removeGlyph</a>('name'/unicode) - remove glyph selected by 'name' or unicode (int)</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-save" href="#fgFont-save"><span class="function-name">save</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgFont-save">save</a>('path/filename'[, bool save_vfb=false]) - save font in UFO or VFB format</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-scale" href="#fgFont-scale"><span class="function-name">scale</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgFont-scale">scale</a>(float) - scale font UPM</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-sortGlyphs" href="#fgFont-sortGlyphs"><span class="function-name">sortGlyphs</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgFont-sortGlyphs">sortGlyphs</a>(sortMethod) - sort glyphs. sortMethod: 'sortNone'/'sortName'/'sortUnicode'/'sortIndex'/'sortIndexReverse'</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-update" href="#fgFont-update"><span class="function-name">update</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgFont-update">update</a>() - force rebuild font chaches and request font update</pre>

</dd></dl>
<dl class="function"><dt><a name="fgFont-values" href="#fgFont-values"><span class="function-name">values</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">[fgGlyph] <a href="#fontgate.fgFont-values">values</a>() - returns list of font's fgGlyph</pre>

</dd></dl>

  <h4 class="head-desc">Descriptors </h4><dl class="descriptor"><dt>axes</dt>
<dd>

<pre class="doc" markdown="0">(fgAxes) axes info</pre>

</dd>
</dl>
<dl class="descriptor"><dt>coding</dt>
<dd>

<pre class="doc" markdown="0">(fgCoding) encoding info</pre>

</dd>
</dl>
<dl class="descriptor"><dt>features</dt>
<dd>

<pre class="doc" markdown="0">(fgOTLayout) features data</pre>

</dd>
</dl>
<dl class="descriptor"><dt>glyphs</dt>
<dd>

<pre class="doc" markdown="0">([fgGlyph]) font glyphs list</pre>

</dd>
</dl>
<dl class="descriptor"><dt>groups</dt>
<dd>

<pre class="doc" markdown="0">(fgGroups) glyph groups list</pre>

</dd>
</dl>
<dl class="descriptor"><dt>guides</dt>
<dd>

<pre class="doc" markdown="0">(fgGuides) guides list</pre>

</dd>
</dl>
<dl class="descriptor"><dt>hinting</dt>
<dd>

<pre class="doc" markdown="0">(fgFontHinting) hinting info</pre>

</dd>
</dl>
<dl class="descriptor"><dt>hints</dt>
<dd>

<pre class="doc" markdown="0">(fgHints) hints list for font 'Body' layer</pre>

</dd>
</dl>
<dl class="descriptor"><dt>id</dt>
<dd>

<pre class="doc" markdown="0">(long) package id</pre>

</dd>
</dl>
<dl class="descriptor"><dt>info</dt>
<dd>

<pre class="doc" markdown="0">(fgFontInfo) font info data</pre>

</dd>
</dl>
<dl class="descriptor"><dt>kerning</dt>
<dd>

<pre class="doc" markdown="0">(fgKerning) kerning data</pre>

</dd>
</dl>
<dl class="descriptor"><dt>lib</dt>
<dd>

<pre class="doc" markdown="0">(fgLib) additional font data</pre>

</dd>
</dl>
<dl class="descriptor"><dt>master</dt>
<dd>

<pre class="doc" markdown="0">(fgLayer) font master layer</pre>

</dd>
</dl>
<dl class="descriptor"><dt>metricsClasses</dt>
<dd>

<pre class="doc" markdown="0">(fgMetricsClasses) list of metrics classes</pre>

</dd>
</dl>
<dl class="descriptor"><dt>path</dt>
<dd>

<pre class="doc" markdown="0">(string) path and font file name</pre>

</dd>
</dl>
<dl class="descriptor"><dt>shapes</dt>
<dd>

<pre class="doc" markdown="0">(fgMapShapes) font shapes map</pre>

</dd>
</dl>
<dl class="descriptor"><dt>tables</dt>
<dd>

<pre class="doc" markdown="0">(fgMapBytes) raw OT tables data</pre>

</dd>
</dl>
<dl class="descriptor"><dt>translatedNames</dt>
<dd>

<pre class="doc" markdown="0">([tuples]) raw style->names.translated data</pre>

</dd>
</dl>

  <h4 class="head-attrs">Attributes </h4><dl><dt><span class="other-name">__new__</span> = &lt;built-in method __new__ of type object&gt;<dd>

<pre class="doc" markdown="0">T.<a href="#fontgate.fgFont-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</pre>

</dd></dl>
</dd>


<a name="fontgate.fgFont.addGlyph"></a>

## `addGlyph`


<dl class="function"><dt><a name="-fontgate.fgFont.addGlyph" href="#-fontgate.fgFont.addGlyph"><span class="function-name">fontgate.fgFont.addGlyph</span></a> = addGlyph<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">fgGlyph addGlyph(fgGlyph)</pre>

</dd></dl>



<a name="fontgate.fgFont.appendFeatures"></a>

## `appendFeatures`


<dl class="function"><dt><a name="-fontgate.fgFont.appendFeatures" href="#-fontgate.fgFont.appendFeatures"><span class="function-name">fontgate.fgFont.appendFeatures</span></a> = appendFeatures<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">int appendFeatures()</pre>

</dd></dl>



<a name="fontgate.fgFont.averageHeight"></a>

## `averageHeight`


<dl class="function"><dt><a name="-fontgate.fgFont.averageHeight" href="#-fontgate.fgFont.averageHeight"><span class="function-name">fontgate.fgFont.averageHeight</span></a> = averageHeight<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">float averageHeight()</pre>

</dd></dl>



<a name="fontgate.fgFont.averageWidth"></a>

## `averageWidth`


<dl class="function"><dt><a name="-fontgate.fgFont.averageWidth" href="#-fontgate.fgFont.averageWidth"><span class="function-name">fontgate.fgFont.averageWidth</span></a> = averageWidth<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">float averageWidth()</pre>

</dd></dl>



<a name="fontgate.fgFont.axes"></a>

## `axes`


<dl class="descriptor"><dt>fontgate.fgFont.axes</dt>
<dd>

<pre class="doc" markdown="0">(fgAxes) axes info</pre>

</dd>
</dl>



<a name="fontgate.fgFont.boundingBox"></a>

## `boundingBox`


<dl class="function"><dt><a name="-fontgate.fgFont.boundingBox" href="#-fontgate.fgFont.boundingBox"><span class="function-name">fontgate.fgFont.boundingBox</span></a> = boundingBox<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">fgRect boundingBox(fgMatrix)</pre>

</dd></dl>



<a name="fontgate.fgFont.calculateSafeZones"></a>

## `calculateSafeZones`


<dl class="function"><dt><a name="-fontgate.fgFont.calculateSafeZones" href="#-fontgate.fgFont.calculateSafeZones"><span class="function-name">fontgate.fgFont.calculateSafeZones</span></a> = calculateSafeZones<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">?</pre>

</dd></dl>



<a name="fontgate.fgFont.checkMaps"></a>

## `checkMaps`


<dl class="function"><dt><a name="-fontgate.fgFont.checkMaps" href="#-fontgate.fgFont.checkMaps"><span class="function-name">fontgate.fgFont.checkMaps</span></a> = checkMaps<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">checkMaps()</pre>

</dd></dl>



<a name="fontgate.fgFont.clearGlyphs"></a>

## `clearGlyphs`


<dl class="function"><dt><a name="-fontgate.fgFont.clearGlyphs" href="#-fontgate.fgFont.clearGlyphs"><span class="function-name">fontgate.fgFont.clearGlyphs</span></a> = clearGlyphs<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">clearGlyphs() - remove all glyphs</pre>

</dd></dl>



<a name="fontgate.fgFont.clearMaps"></a>

## `clearMaps`


<dl class="function"><dt><a name="-fontgate.fgFont.clearMaps" href="#-fontgate.fgFont.clearMaps"><span class="function-name">fontgate.fgFont.clearMaps</span></a> = clearMaps<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">clearMaps() - force clear all font internal caches</pre>

</dd></dl>



<a name="fontgate.fgFont.coding"></a>

## `coding`


<dl class="descriptor"><dt>fontgate.fgFont.coding</dt>
<dd>

<pre class="doc" markdown="0">(fgCoding) encoding info</pre>

</dd>
</dl>



<a name="fontgate.fgFont.copyFrom"></a>

## `copyFrom`


<dl class="function"><dt><a name="-fontgate.fgFont.copyFrom" href="#-fontgate.fgFont.copyFrom"><span class="function-name">fontgate.fgFont.copyFrom</span></a> = copyFrom<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">copyFrom(fgFont sourceFont) - copy all data and glyphs from source font</pre>

</dd></dl>



<a name="fontgate.fgFont.createGlyph"></a>

## `createGlyph`


<dl class="function"><dt><a name="-fontgate.fgFont.createGlyph" href="#-fontgate.fgFont.createGlyph"><span class="function-name">fontgate.fgFont.createGlyph</span></a> = createGlyph<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">fgGlyph createGlyph('name'[, int unicode[, bool clearExisting = false]])</pre>

</dd></dl>



<a name="fontgate.fgFont.dropHintingTables"></a>

## `dropHintingTables`


<dl class="function"><dt><a name="-fontgate.fgFont.dropHintingTables" href="#-fontgate.fgFont.dropHintingTables"><span class="function-name">fontgate.fgFont.dropHintingTables</span></a> = dropHintingTables<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">dropHintingTables()</pre>

</dd></dl>



<a name="fontgate.fgFont.dropLayoutTables"></a>

## `dropLayoutTables`


<dl class="function"><dt><a name="-fontgate.fgFont.dropLayoutTables" href="#-fontgate.fgFont.dropLayoutTables"><span class="function-name">fontgate.fgFont.dropLayoutTables</span></a> = dropLayoutTables<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">dropLayoutTables()</pre>

</dd></dl>



<a name="fontgate.fgFont.features"></a>

## `features`


<dl class="descriptor"><dt>fontgate.fgFont.features</dt>
<dd>

<pre class="doc" markdown="0">(fgOTLayout) features data</pre>

</dd>
</dl>



<a name="fontgate.fgFont.fixOrdering"></a>

## `fixOrdering`


<dl class="function"><dt><a name="-fontgate.fgFont.fixOrdering" href="#-fontgate.fgFont.fixOrdering"><span class="function-name">fontgate.fgFont.fixOrdering</span></a> = fixOrdering<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool fixOrdering(float upm[, sortMethod='sortUnicode']) - sort glyphs by selected method. Methods are 'sortNone', 'sortName', 'sortUnicode', 'sortIndex', 'sortIndexReverse'</pre>

</dd></dl>



<a name="fontgate.fgFont.glyphs"></a>

## `glyphs`


<dl class="descriptor"><dt>fontgate.fgFont.glyphs</dt>
<dd>

<pre class="doc" markdown="0">([fgGlyph]) font glyphs list</pre>

</dd>
</dl>



<a name="fontgate.fgFont.groups"></a>

## `groups`


<dl class="descriptor"><dt>fontgate.fgFont.groups</dt>
<dd>

<pre class="doc" markdown="0">(fgGroups) glyph groups list</pre>

</dd>
</dl>



<a name="fontgate.fgFont.guides"></a>

## `guides`


<dl class="descriptor"><dt>fontgate.fgFont.guides</dt>
<dd>

<pre class="doc" markdown="0">(fgGuides) guides list</pre>

</dd>
</dl>



<a name="fontgate.fgFont.has_key"></a>

## `has_key`


<dl class="function"><dt><a name="-fontgate.fgFont.has_key" href="#-fontgate.fgFont.has_key"><span class="function-name">fontgate.fgFont.has_key</span></a> = has_key<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool has_key('name') - return true if font contains glyph with name 'name'</pre>

</dd></dl>



<a name="fontgate.fgFont.hasColors"></a>

## `hasColors`


<dl class="function"><dt><a name="-fontgate.fgFont.hasColors" href="#-fontgate.fgFont.hasColors"><span class="function-name">fontgate.fgFont.hasColors</span></a> = hasColors<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool hasColors()</pre>

</dd></dl>



<a name="fontgate.fgFont.hasPictures"></a>

## `hasPictures`


<dl class="function"><dt><a name="-fontgate.fgFont.hasPictures" href="#-fontgate.fgFont.hasPictures"><span class="function-name">fontgate.fgFont.hasPictures</span></a> = hasPictures<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool hasPictures()</pre>

</dd></dl>



<a name="fontgate.fgFont.hinting"></a>

## `hinting`


<dl class="descriptor"><dt>fontgate.fgFont.hinting</dt>
<dd>

<pre class="doc" markdown="0">(fgFontHinting) hinting info</pre>

</dd>
</dl>



<a name="fontgate.fgFont.hints"></a>

## `hints`


<dl class="descriptor"><dt>fontgate.fgFont.hints</dt>
<dd>

<pre class="doc" markdown="0">(fgHints) hints list for font 'Body' layer</pre>

</dd>
</dl>



<a name="fontgate.fgFont.id"></a>

## `id`


<dl class="descriptor"><dt>fontgate.fgFont.id</dt>
<dd>

<pre class="doc" markdown="0">(long) package id</pre>

</dd>
</dl>



<a name="fontgate.fgFont.info"></a>

## `info`


<dl class="descriptor"><dt>fontgate.fgFont.info</dt>
<dd>

<pre class="doc" markdown="0">(fgFontInfo) font info data</pre>

</dd>
</dl>



<a name="fontgate.fgFont.items"></a>

## `items`


<dl class="function"><dt><a name="-fontgate.fgFont.items" href="#-fontgate.fgFont.items"><span class="function-name">fontgate.fgFont.items</span></a> = items<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">[('name', fgGlyph)] items() - returns a list of font's ('name', fgGlyph) tuple pairs</pre>

</dd></dl>



<a name="fontgate.fgFont.kerning"></a>

## `kerning`


<dl class="descriptor"><dt>fontgate.fgFont.kerning</dt>
<dd>

<pre class="doc" markdown="0">(fgKerning) kerning data</pre>

</dd>
</dl>



<a name="fontgate.fgFont.keys"></a>

## `keys`


<dl class="function"><dt><a name="-fontgate.fgFont.keys" href="#-fontgate.fgFont.keys"><span class="function-name">fontgate.fgFont.keys</span></a> = keys<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">['names'] keys() - return list of names of all glyphs in the font</pre>

</dd></dl>



<a name="fontgate.fgFont.killUnicode"></a>

## `killUnicode`


<dl class="function"><dt><a name="-fontgate.fgFont.killUnicode" href="#-fontgate.fgFont.killUnicode"><span class="function-name">fontgate.fgFont.killUnicode</span></a> = killUnicode<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">killUnicode(unicode) - remove selected unicode from all glyph unicodes lists</pre>

</dd></dl>



<a name="fontgate.fgFont.lib"></a>

## `lib`


<dl class="descriptor"><dt>fontgate.fgFont.lib</dt>
<dd>

<pre class="doc" markdown="0">(fgLib) additional font data</pre>

</dd>
</dl>



<a name="fontgate.fgFont.master"></a>

## `master`


<dl class="descriptor"><dt>fontgate.fgFont.master</dt>
<dd>

<pre class="doc" markdown="0">(fgLayer) font master layer</pre>

</dd>
</dl>



<a name="fontgate.fgFont.metricsClasses"></a>

## `metricsClasses`


<dl class="descriptor"><dt>fontgate.fgFont.metricsClasses</dt>
<dd>

<pre class="doc" markdown="0">(fgMetricsClasses) list of metrics classes</pre>

</dd>
</dl>



<a name="fontgate.fgFont.path"></a>

## `path`


<dl class="descriptor"><dt>fontgate.fgFont.path</dt>
<dd>

<pre class="doc" markdown="0">(string) path and font file name</pre>

</dd>
</dl>



<a name="fontgate.fgFont.rebuildMaps"></a>

## `rebuildMaps`


<dl class="function"><dt><a name="-fontgate.fgFont.rebuildMaps" href="#-fontgate.fgFont.rebuildMaps"><span class="function-name">fontgate.fgFont.rebuildMaps</span></a> = rebuildMaps<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">rebuildMaps() - force clear and rebuild all font internal caches</pre>

</dd></dl>



<a name="fontgate.fgFont.removeGlyph"></a>

## `removeGlyph`


<dl class="function"><dt><a name="-fontgate.fgFont.removeGlyph" href="#-fontgate.fgFont.removeGlyph"><span class="function-name">fontgate.fgFont.removeGlyph</span></a> = removeGlyph<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool/Nothing removeGlyph('name'/unicode) - remove glyph selected by 'name' or unicode (int)</pre>

</dd></dl>



<a name="fontgate.fgFont.save"></a>

## `save`


<dl class="function"><dt><a name="-fontgate.fgFont.save" href="#-fontgate.fgFont.save"><span class="function-name">fontgate.fgFont.save</span></a> = save<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">save('path/filename'[, bool save_vfb=false]) - save font in UFO or VFB format</pre>

</dd></dl>



<a name="fontgate.fgFont.scale"></a>

## `scale`


<dl class="function"><dt><a name="-fontgate.fgFont.scale" href="#-fontgate.fgFont.scale"><span class="function-name">fontgate.fgFont.scale</span></a> = scale<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">scale(float) - scale font UPM</pre>

</dd></dl>



<a name="fontgate.fgFont.shapes"></a>

## `shapes`


<dl class="descriptor"><dt>fontgate.fgFont.shapes</dt>
<dd>

<pre class="doc" markdown="0">(fgMapShapes) font shapes map</pre>

</dd>
</dl>



<a name="fontgate.fgFont.sortGlyphs"></a>

## `sortGlyphs`


<dl class="function"><dt><a name="-fontgate.fgFont.sortGlyphs" href="#-fontgate.fgFont.sortGlyphs"><span class="function-name">fontgate.fgFont.sortGlyphs</span></a> = sortGlyphs<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">sortGlyphs(sortMethod) - sort glyphs. sortMethod: 'sortNone'/'sortName'/'sortUnicode'/'sortIndex'/'sortIndexReverse'</pre>

</dd></dl>



<a name="fontgate.fgFont.tables"></a>

## `tables`


<dl class="descriptor"><dt>fontgate.fgFont.tables</dt>
<dd>

<pre class="doc" markdown="0">(fgMapBytes) raw OT tables data</pre>

</dd>
</dl>



<a name="fontgate.fgFont.translatedNames"></a>

## `translatedNames`


<dl class="descriptor"><dt>fontgate.fgFont.translatedNames</dt>
<dd>

<pre class="doc" markdown="0">([tuples]) raw style->names.translated data</pre>

</dd>
</dl>



<a name="fontgate.fgFont.update"></a>

## `update`


<dl class="function"><dt><a name="-fontgate.fgFont.update" href="#-fontgate.fgFont.update"><span class="function-name">fontgate.fgFont.update</span></a> = update<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">update() - force rebuild font chaches and request font update</pre>

</dd></dl>



<a name="fontgate.fgFont.values"></a>

## `values`


<dl class="function"><dt><a name="-fontgate.fgFont.values" href="#-fontgate.fgFont.values"><span class="function-name">fontgate.fgFont.values</span></a> = values<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">[fgGlyph] values() - returns list of font's fgGlyph</pre>

</dd></dl>

