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 Distribution
Built Distributions
Hashes for ttfautohint_py-0.5.1-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7010f6dff9a2fe0c4ae87b7a5f84d94fb44064377c3cbcf5e88786f5244ed6de |
|
MD5 | 75c10d53b25aeac536058c804efd4927 |
|
BLAKE2b-256 | d56a54eb979925e7b4edd8d84524f7b45786be90cf308811eabe101514d97ce8 |
Hashes for ttfautohint_py-0.5.1-py2.py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16f713bbef44c31af1c64ef21f74605cbcd01b3e387c9c0a79b389203f030b9b |
|
MD5 | c7e25718f5860638aaa745b70dbe7ffa |
|
BLAKE2b-256 | 6d95195b3dd69f913ef1ac37c7f1fbad6e8170ba0a0938cfc3579578f0c312bc |
Hashes for ttfautohint_py-0.5.1-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c65fe2fd3ee16d68201169c72413e70130d9f9d0b92589f9122d9f72a98d093 |
|
MD5 | 733f813c874578c712dd1464cfc1bf06 |
|
BLAKE2b-256 | 9513fa29859804685619c0788a92a78ba624879ba618e67f25ffe30ca51bfb04 |
Hashes for ttfautohint_py-0.5.1-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68414b2e507822f42db5660c9151815b30d81ffec5b322f4b2153ba531f883cb |
|
MD5 | e924357e47a77d8cd29739af26a04087 |
|
BLAKE2b-256 | 75d764bd7547e8ea7376b46581841fb9ca29aa7c901b6caeec695f1d942560fd |
Hashes for ttfautohint_py-0.5.1-py2.py3-none-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1082907b33112f7734449f64ca49d5c3225a4c6a727034353885e596b1e0a0b0 |
|
MD5 | 3e7053a871656a7b93cd9c424b3603e3 |
|
BLAKE2b-256 | 2c371e1500aee15ce25c20e705d9ee34f4e9c5d8118050db973bca777139c3e7 |