Skip to main content

Python wrapper for ttfautohint, a free auto-hinter for TrueType fonts

Project description

CI Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ttfautohint_py-0.6.0.tar.gz (180.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ttfautohint_py-0.6.0-py3-none-win_amd64.whl (18.1 MB view details)

Uploaded Python 3Windows x86-64

ttfautohint_py-0.6.0-py3-none-win32.whl (18.0 MB view details)

Uploaded Python 3Windows x86

ttfautohint_py-0.6.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (13.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

ttfautohint_py-0.6.0-py3-none-macosx_10_9_universal2.whl (2.0 MB view details)

Uploaded Python 3macOS 10.9+ universal2 (ARM64, x86-64)

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

Hashes for ttfautohint_py-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c1158529cc9a0cf047a8a8562cdb69cac63a05dc647c3a5ce987f60dcf084928
MD5 7718539a8c4adaa90e4e883aafbcb24d
BLAKE2b-256 fafebac058f2844c06768f7f2fd2dbfc3c912685bc58543d20d1f891e4c2cb37

See more details on using hashes here.

Provenance

The following attestation bundles were made for ttfautohint_py-0.6.0.tar.gz:

Publisher: ci.yml on fonttools/ttfautohint-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ttfautohint_py-0.6.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for ttfautohint_py-0.6.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 137ed8af7569325b1fc140e1985e8647dc2eb76749b7347ad32322d8bb410a48
MD5 2e65376aac1676ca32ca001a89511fad
BLAKE2b-256 cff13c5d78168b16b1acb1da8bd9842232c8725ffa483f1e2eaf3e038a1b9f36

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ttfautohint_py-0.6.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 f2759b1ff4f5ed1d4f3f4a2a9a466953ec0fe8f367bfe0cc6e859920a3e4f91f
MD5 aa30c41d27d84251caea673d6f66d36c
BLAKE2b-256 e36c3a94c7460b1b98b70123964e8711f09ba1ef5811f52b9bc2c666edf0c09e

See more details on using hashes here.

Provenance

The following attestation bundles were made for ttfautohint_py-0.6.0-py3-none-win32.whl:

Publisher: ci.yml on fonttools/ttfautohint-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ttfautohint_py-0.6.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for ttfautohint_py-0.6.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 7773f7bedcc71b53db1b0cd13749f6ccde888874254488d7a4b511a4c3674db9
MD5 ab15fa967070f8f551f5cd3be3f1476a
BLAKE2b-256 477f7362560b6bf03c0b59098b7c1c4f78b0814247cb34e17084bb2b8798f440

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ttfautohint_py-0.6.0-py3-none-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for ttfautohint_py-0.6.0-py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 65471c781bdd8352203ab508ec1172ccadeacb2fa2d33317c55f4dda6031d695
MD5 6a27710a67efa85ba04f779ec84c8757
BLAKE2b-256 3ff3a2f399d7b95663dafcbdd58c26773cdd6d75ceff3f82308b3203beec9581

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page