Python wrapper for ttfautohint, a free auto-hinter for TrueType fonts
Project description
ttfautohint-py
ttfautohint-py is a Python wrapper for ttfautohint, a free auto-hinter for TrueType fonts created by Werner Lemberg (@lemzwerg).
It uses ctypes to load the libttfautohint shared library and call the TTF_autohint function.
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 installer.
$ pip install ttfautohint-py
The wheels include a precompiled libttfautohint.so (*.dylib on macOS, or *.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 libttfautohint.
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.
A 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 setup.py script.
Because we build freetype, harfbuzz and ttfautohint from their git source (checked in as git submodules), some relatively recent versions of the following development tools are also required: autoconf, automake, libtool, flex, bison and ragel. Please check the respective documentation of these libraries for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for ttfautohint_py-0.4.0-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d15a0f82ee9c1743c823090f34c7dea9ea5f19bb0024712cc5602b85f317db9 |
|
MD5 | d0106a1ab4f0eb3945c4b1f65b18d88a |
|
BLAKE2b-256 | e4dab2c008d25c9cb722decf57213ef8d8e32ace3accf2a16413e72a05d43526 |
Hashes for ttfautohint_py-0.4.0-py2.py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1b72e5b6956b52dc8b92b5cac6e33ae8e0dd9b88c4859ebac39091a516f17d2 |
|
MD5 | 560860a2210336469ea702ca02723597 |
|
BLAKE2b-256 | d6e16b56749436f4208fc1807412a4dfb9f2715140cbe752c1dd0449a9693692 |
Hashes for ttfautohint_py-0.4.0-py2.py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fad052d625421f5fddc3ae5340a50632d5c7bbc996dd2957cf0673da3f147b3d |
|
MD5 | 9e772a9b8dff74bf3d3566f934d160cb |
|
BLAKE2b-256 | 9c095fc38c3db770b18b87163dc1bc57589a6c4a21cf2d876c7aa2500c5c4d3e |
Hashes for ttfautohint_py-0.4.0-py2.py3-none-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfbc02c7e83733bec2d311cd5c16ac21639c4bda3b0de76286330dc7d2dec03a |
|
MD5 | 1b152574149c3b20289c02b35e6fc991 |
|
BLAKE2b-256 | 6362b9eb39e5fd45355667da565b8c6276633c38e93e496dc506322aaabcc1d7 |
Hashes for ttfautohint_py-0.4.0-py2.py3-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9efc4a27d8799ca2b08e346e1fe569fc103e41a379f2c5a7656d57bd2cdfc919 |
|
MD5 | 54807eb45d949b0ae49971f80e2cbd74 |
|
BLAKE2b-256 | 14e154bffae9f387e2be6fb4ff2c2ef5de84a793d7efdb845944027df8858a6b |