It uses ctypes to load the
libttfautohint shared library and call the
Binary "wheel" packages are available for Linux (
manylinux1), macOS and
Windows, for both Python 2.7 and Python 3.x, with 32 and 64 bit architecture.
They can be installed from the Python Package Index
(PyPI) using the
$ pip install ttfautohint-py
The wheels include a precompiled
*.dll on Windows) shared library which has no other dependency
apart from system libraries. The FreeType and
the HarfBuzz libraries are compiled
from source as static libraries and embedded in
To compile the
libttfautohint.dll from source on Windows, you need to
install MSYS2 and the latest MinGW-w64 toolchain.
This is because the
ttfautohint build system is based on autotools and
thus requires a Unix-like environment.
Makefile is used to build the library and its static dependencies, thus
the GNU make executable must be on the
$PATH, as this is called upon by the
Because we build
ttfautohint from their git
source (checked in as git submodules), some relatively recent versions of the
following development tools are also required:
ragel. Please check the respective
documentation of these libraries for more information.