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).
As of v0.6, it runs the ttfautohint executable as a subprocess. Previous versions used ctypes to load the libttfautohint shared library, but that was hard to maintain and complicated to keep up to date with upstream ttfautohint hence we decided to switch to a simpler subprocess approach (cf. #15).
Binary "wheel" packages are available for Linux (manylinux2014), macOS and Windows, for Python 3.9+, 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 ttfautohint executable 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 ttfautohint.
To compile the ttfautohint-py package 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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ttfautohint_py-0.6.0.tar.gz.
File metadata
- Download URL: ttfautohint_py-0.6.0.tar.gz
- Upload date:
- Size: 180.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1158529cc9a0cf047a8a8562cdb69cac63a05dc647c3a5ce987f60dcf084928
|
|
| MD5 |
7718539a8c4adaa90e4e883aafbcb24d
|
|
| BLAKE2b-256 |
fafebac058f2844c06768f7f2fd2dbfc3c912685bc58543d20d1f891e4c2cb37
|
Provenance
The following attestation bundles were made for ttfautohint_py-0.6.0.tar.gz:
Publisher:
ci.yml on fonttools/ttfautohint-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ttfautohint_py-0.6.0.tar.gz -
Subject digest:
c1158529cc9a0cf047a8a8562cdb69cac63a05dc647c3a5ce987f60dcf084928 - Sigstore transparency entry: 339852116
- Sigstore integration time:
-
Permalink:
fonttools/ttfautohint-py@ebe2f66746b1ecbec39bfda1406bf78c478a77e2 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/fonttools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@ebe2f66746b1ecbec39bfda1406bf78c478a77e2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ttfautohint_py-0.6.0-py3-none-win_amd64.whl.
File metadata
- Download URL: ttfautohint_py-0.6.0-py3-none-win_amd64.whl
- Upload date:
- Size: 18.1 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
137ed8af7569325b1fc140e1985e8647dc2eb76749b7347ad32322d8bb410a48
|
|
| MD5 |
2e65376aac1676ca32ca001a89511fad
|
|
| BLAKE2b-256 |
cff13c5d78168b16b1acb1da8bd9842232c8725ffa483f1e2eaf3e038a1b9f36
|
Provenance
The following attestation bundles were made for ttfautohint_py-0.6.0-py3-none-win_amd64.whl:
Publisher:
ci.yml on fonttools/ttfautohint-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ttfautohint_py-0.6.0-py3-none-win_amd64.whl -
Subject digest:
137ed8af7569325b1fc140e1985e8647dc2eb76749b7347ad32322d8bb410a48 - Sigstore transparency entry: 339852151
- Sigstore integration time:
-
Permalink:
fonttools/ttfautohint-py@ebe2f66746b1ecbec39bfda1406bf78c478a77e2 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/fonttools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@ebe2f66746b1ecbec39bfda1406bf78c478a77e2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ttfautohint_py-0.6.0-py3-none-win32.whl.
File metadata
- Download URL: ttfautohint_py-0.6.0-py3-none-win32.whl
- Upload date:
- Size: 18.0 MB
- Tags: Python 3, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2759b1ff4f5ed1d4f3f4a2a9a466953ec0fe8f367bfe0cc6e859920a3e4f91f
|
|
| MD5 |
aa30c41d27d84251caea673d6f66d36c
|
|
| BLAKE2b-256 |
e36c3a94c7460b1b98b70123964e8711f09ba1ef5811f52b9bc2c666edf0c09e
|
Provenance
The following attestation bundles were made for ttfautohint_py-0.6.0-py3-none-win32.whl:
Publisher:
ci.yml on fonttools/ttfautohint-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ttfautohint_py-0.6.0-py3-none-win32.whl -
Subject digest:
f2759b1ff4f5ed1d4f3f4a2a9a466953ec0fe8f367bfe0cc6e859920a3e4f91f - Sigstore transparency entry: 339852196
- Sigstore integration time:
-
Permalink:
fonttools/ttfautohint-py@ebe2f66746b1ecbec39bfda1406bf78c478a77e2 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/fonttools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@ebe2f66746b1ecbec39bfda1406bf78c478a77e2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ttfautohint_py-0.6.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: ttfautohint_py-0.6.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 13.8 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7773f7bedcc71b53db1b0cd13749f6ccde888874254488d7a4b511a4c3674db9
|
|
| MD5 |
ab15fa967070f8f551f5cd3be3f1476a
|
|
| BLAKE2b-256 |
477f7362560b6bf03c0b59098b7c1c4f78b0814247cb34e17084bb2b8798f440
|
Provenance
The following attestation bundles were made for ttfautohint_py-0.6.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:
Publisher:
ci.yml on fonttools/ttfautohint-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ttfautohint_py-0.6.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
7773f7bedcc71b53db1b0cd13749f6ccde888874254488d7a4b511a4c3674db9 - Sigstore transparency entry: 339852211
- Sigstore integration time:
-
Permalink:
fonttools/ttfautohint-py@ebe2f66746b1ecbec39bfda1406bf78c478a77e2 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/fonttools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@ebe2f66746b1ecbec39bfda1406bf78c478a77e2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ttfautohint_py-0.6.0-py3-none-macosx_10_9_universal2.whl.
File metadata
- Download URL: ttfautohint_py-0.6.0-py3-none-macosx_10_9_universal2.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65471c781bdd8352203ab508ec1172ccadeacb2fa2d33317c55f4dda6031d695
|
|
| MD5 |
6a27710a67efa85ba04f779ec84c8757
|
|
| BLAKE2b-256 |
3ff3a2f399d7b95663dafcbdd58c26773cdd6d75ceff3f82308b3203beec9581
|
Provenance
The following attestation bundles were made for ttfautohint_py-0.6.0-py3-none-macosx_10_9_universal2.whl:
Publisher:
ci.yml on fonttools/ttfautohint-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ttfautohint_py-0.6.0-py3-none-macosx_10_9_universal2.whl -
Subject digest:
65471c781bdd8352203ab508ec1172ccadeacb2fa2d33317c55f4dda6031d695 - Sigstore transparency entry: 339852172
- Sigstore integration time:
-
Permalink:
fonttools/ttfautohint-py@ebe2f66746b1ecbec39bfda1406bf78c478a77e2 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/fonttools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@ebe2f66746b1ecbec39bfda1406bf78c478a77e2 -
Trigger Event:
release
-
Statement type: