Skip to main content

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

Project description

Github CI Status Appveyor CI Status PyPI Codecov

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

ttfautohint_py-0.4.3.post1-py2.py3-none-win_amd64.whl (8.8 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

ttfautohint_py-0.4.3.post1-py2.py3-none-win32.whl (8.6 MB view details)

Uploaded Python 2 Python 3 Windows x86

ttfautohint_py-0.4.3.post1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (7.5 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

ttfautohint_py-0.4.3.post1-py2.py3-none-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded Python 2 Python 3 macOS 10.9+ x86-64

ttfautohint_py-0.4.3.post1-py2.py3-none-macosx_10_9_universal2.whl (1.7 MB view details)

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

File details

Details for the file ttfautohint_py-0.4.3.post1-py2.py3-none-win_amd64.whl.

File metadata

  • Download URL: ttfautohint_py-0.4.3.post1-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 8.8 MB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.8

File hashes

Hashes for ttfautohint_py-0.4.3.post1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7b6bcf5ae90db62f867e4ddb0e0a4abb1103212b4b61b82148b0f09713ffb57a
MD5 0228f470877200a785e955ab4df0f3f7
BLAKE2b-256 4e87b930edbb393300189629c0b73aebcf3affa80c188d118382f2c64991ad6d

See more details on using hashes here.

Provenance

File details

Details for the file ttfautohint_py-0.4.3.post1-py2.py3-none-win32.whl.

File metadata

  • Download URL: ttfautohint_py-0.4.3.post1-py2.py3-none-win32.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/2.7.17

File hashes

Hashes for ttfautohint_py-0.4.3.post1-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 6af2b1f9d520b223a7dcf886016764e3373c033d9ebd74c885546207edd67250
MD5 395d82f4965bb525f654c54422dd3320
BLAKE2b-256 990f2a3e44742c1eddd3aca6847c5140e2df54fc90468bdc3fa91addead576d7

See more details on using hashes here.

Provenance

File details

Details for the file ttfautohint_py-0.4.3.post1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ttfautohint_py-0.4.3.post1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 099127c38f5ccfbe42a58f2e4ac2efe5fd58e337f14c34af7417ce9d534c986e
MD5 3eb40b5f330a8092d514e68d0904166a
BLAKE2b-256 8eba6ef83f43a13655a20bc90ab644e624ebe55ad65365c7e54089c7435c754a

See more details on using hashes here.

Provenance

File details

Details for the file ttfautohint_py-0.4.3.post1-py2.py3-none-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: ttfautohint_py-0.4.3.post1-py2.py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 2, Python 3, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for ttfautohint_py-0.4.3.post1-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9bfcb382de6fa57d195c8a5b097e2baf54f9354c537bef6150be3839f5862f7c
MD5 a846b7f082799deddeaf7557e6fb2e86
BLAKE2b-256 3f29841d1d27603fc7e9b87bcbeab622e69080cd2d9c08e159e11dda8e9aeae0

See more details on using hashes here.

Provenance

File details

Details for the file ttfautohint_py-0.4.3.post1-py2.py3-none-macosx_10_9_universal2.whl.

File metadata

  • Download URL: ttfautohint_py-0.4.3.post1-py2.py3-none-macosx_10_9_universal2.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 2, Python 3, macOS 10.9+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for ttfautohint_py-0.4.3.post1-py2.py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6149fd67f7c12485921a3707d5850450b919b10ba73300567d2860351c54c412
MD5 8649b538b2a8e0038acc3a902b6034fb
BLAKE2b-256 deba1c79d2baff01f3de1a34a601b61eba22851acf3a1d060be0a5129fe3a23a

See more details on using hashes here.

Provenance

Supported by

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