Font and FontStack

In fontlib’s managment a font is identified by its origin URL. For the implemtation take a look at class fontlib.font.Font. Instances of class Font are managed in a fontlib.api.FontStack. The factory fontlib.api.FontStack.get_fontstack() can be used to build an FontStack instance inited from a fontlib.config.Config object. See Config, there is a section named [fontstack].

Source Code Remarks

Implemtation of class Font.

Implementation of class FontStack.

Further Reading

WOFF2:
OFL fonts:
Variable Fonts (VF):
fonttools:

Tool for manipulating TrueType and OpenType fonts (fonttools).

Install method which uses apt & python and installs fonttools and brotli compression:

$ sudo apt-get install python-dev
$ pip install --user fonttools
$ git clone https://github.com/google/brotli
cd brotli
$ python setup.py install --user