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
File details
Details for the file ttfautohint-py-0.5.1.tar.gz
.
File metadata
- Download URL: ttfautohint-py-0.5.1.tar.gz
- Upload date:
- Size: 188.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5e324e1437399ab3ed2ffeb68f8b3235d3ad151eefc8375a1c3a380f5fa94fa |
|
MD5 | 91c73697362ec9999ec730700f0ba4e2 |
|
BLAKE2b-256 | 0322598d609cbd11b4e29a90fe4ea1ab9be9f6385b209c44c109e0fd1e00dc32 |
File details
Details for the file ttfautohint_py-0.5.1-py2.py3-none-win_amd64.whl
.
File metadata
- Download URL: ttfautohint_py-0.5.1-py2.py3-none-win_amd64.whl
- Upload date:
- Size: 12.4 MB
- Tags: Python 2, Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7010f6dff9a2fe0c4ae87b7a5f84d94fb44064377c3cbcf5e88786f5244ed6de |
|
MD5 | 75c10d53b25aeac536058c804efd4927 |
|
BLAKE2b-256 | d56a54eb979925e7b4edd8d84524f7b45786be90cf308811eabe101514d97ce8 |
File details
Details for the file ttfautohint_py-0.5.1-py2.py3-none-win32.whl
.
File metadata
- Download URL: ttfautohint_py-0.5.1-py2.py3-none-win32.whl
- Upload date:
- Size: 12.2 MB
- Tags: Python 2, Python 3, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16f713bbef44c31af1c64ef21f74605cbcd01b3e387c9c0a79b389203f030b9b |
|
MD5 | c7e25718f5860638aaa745b70dbe7ffa |
|
BLAKE2b-256 | 6d95195b3dd69f913ef1ac37c7f1fbad6e8170ba0a0938cfc3579578f0c312bc |
File details
Details for the file ttfautohint_py-0.5.1-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: ttfautohint_py-0.5.1-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 9.6 MB
- Tags: Python 2, Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c65fe2fd3ee16d68201169c72413e70130d9f9d0b92589f9122d9f72a98d093 |
|
MD5 | 733f813c874578c712dd1464cfc1bf06 |
|
BLAKE2b-256 | 9513fa29859804685619c0788a92a78ba624879ba618e67f25ffe30ca51bfb04 |
File details
Details for the file ttfautohint_py-0.5.1-py2.py3-none-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: ttfautohint_py-0.5.1-py2.py3-none-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 2, Python 3, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68414b2e507822f42db5660c9151815b30d81ffec5b322f4b2153ba531f883cb |
|
MD5 | e924357e47a77d8cd29739af26a04087 |
|
BLAKE2b-256 | 75d764bd7547e8ea7376b46581841fb9ca29aa7c901b6caeec695f1d942560fd |
File details
Details for the file ttfautohint_py-0.5.1-py2.py3-none-macosx_10_9_universal2.whl
.
File metadata
- Download URL: ttfautohint_py-0.5.1-py2.py3-none-macosx_10_9_universal2.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 2, Python 3, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1082907b33112f7734449f64ca49d5c3225a4c6a727034353885e596b1e0a0b0 |
|
MD5 | 3e7053a871656a7b93cd9c424b3603e3 |
|
BLAKE2b-256 | 2c371e1500aee15ce25c20e705d9ee34f4e9c5d8118050db973bca777139c3e7 |