

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

# `fgPackages`


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


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

Constructors:
  fgPackages() - default
  fgPackages(fgPackages) - copy
  fgPackages('pathToFontFileOrFolder')</pre>


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

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

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

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

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

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

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

<pre class="doc" markdown="0">x.<a href="#fontgate.fgPackages-__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="fgPackages-__getattribute__" href="#fgPackages-__getattribute__"><span class="function-name">__getattribute__</span></a><span class="argspec">(...)</span></dt><dd>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<pre class="doc" markdown="0">x.<a href="#fontgate.fgPackages-__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="fgPackages-add" href="#fgPackages-add"><span class="function-name">add</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0"><a href="#fontgate.fgPackages-add">add</a>(fgFont or fgPackages object) - add font(s)</pre>

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

<pre class="doc" markdown="0"><a href="#fontgate.fgPackages-close">close</a>() - remove all font(s) from list</pre>

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

<pre class="doc" markdown="0"><a href="#fontgate.fgPackages-copyFrom">copyFrom</a>(fgPackages) - copy all fonts from another fgPackages object</pre>

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

<pre class="doc" markdown="0"><a href="#fontgate.fgPackages-create">create</a>() - add empty font to list and return it's index</pre>

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

<pre class="doc" markdown="0"><a href="#fontgate.fgPackages-indexOf">indexOf</a>(fgFont) - return font index or (-1) if missing in list</pre>

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

<pre class="doc" markdown="0"><a href="#fontgate.fgPackages-open">open</a>(path) - open existing font(s) from 'path' location and return first index of created font(s)</pre>

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

<pre class="doc" markdown="0"><a href="#fontgate.fgPackages-remove">remove</a>(int index) - remove font by index</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.fgPackages-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</pre>

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


<a name="fontgate.fgPackages.add"></a>

## `add`


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

<pre class="doc" markdown="0">add(fgFont or fgPackages object) - add font(s)</pre>

</dd></dl>



<a name="fontgate.fgPackages.close"></a>

## `close`


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

<pre class="doc" markdown="0">close() - remove all font(s) from list</pre>

</dd></dl>



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

## `copyFrom`


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

<pre class="doc" markdown="0">copyFrom(fgPackages) - copy all fonts from another fgPackages object</pre>

</dd></dl>



<a name="fontgate.fgPackages.create"></a>

## `create`


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

<pre class="doc" markdown="0">create() - add empty font to list and return it's index</pre>

</dd></dl>



<a name="fontgate.fgPackages.indexOf"></a>

## `indexOf`


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

<pre class="doc" markdown="0">indexOf(fgFont) - return font index or (-1) if missing in list</pre>

</dd></dl>



<a name="fontgate.fgPackages.open"></a>

## `open`


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

<pre class="doc" markdown="0">open(path) - open existing font(s) from 'path' location and return first index of created font(s)</pre>

</dd></dl>



<a name="fontgate.fgPackages.remove"></a>

## `remove`


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

<pre class="doc" markdown="0">remove(int index) - remove font by index</pre>

</dd></dl>

