Skip to main content

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

Project description

Github 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 Distribution

ttfautohint-py-0.5.0.tar.gz (188.1 kB view details)

Uploaded Source

Built Distributions

ttfautohint_py-0.5.0-py2.py3-none-win_amd64.whl (12.4 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

ttfautohint_py-0.5.0-py2.py3-none-win32.whl (12.2 MB view details)

Uploaded Python 2 Python 3 Windows x86

ttfautohint_py-0.5.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.6 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ x86-64

ttfautohint_py-0.5.0-py2.py3-none-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded Python 2 Python 3 macOS 10.9+ x86-64

ttfautohint_py-0.5.0-py2.py3-none-macosx_10_9_universal2.whl (1.8 MB view details)

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

File details

Details for the file ttfautohint-py-0.5.0.tar.gz.

File metadata

  • Download URL: ttfautohint-py-0.5.0.tar.gz
  • Upload date:
  • Size: 188.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for ttfautohint-py-0.5.0.tar.gz
Algorithm Hash digest
SHA256 0212be8d5590bab2f0e47d827b5f84b5a7124089d94a1d8106ea5d4e155af639
MD5 6388c08da5355f262a41f6f398af3edb
BLAKE2b-256 a4e652b672b812178ca214b1ae5849f2b9c724986934079a4384e7d15ef44387

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ttfautohint_py-0.5.0-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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for ttfautohint_py-0.5.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b217a885dcae8e72fcc9251bc2bcceab2baecf866b33456b87b096806b91957a
MD5 1ed0a2b72a0ad5e3fed3e572a12933a1
BLAKE2b-256 341f7c2bc8321f993bd536d481c28df66631a70097804ca88ead2a764a052ebd

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ttfautohint_py-0.5.0-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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for ttfautohint_py-0.5.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 6c7e4314d53850279a7901931c824e29da7b1cbba2eeba848e6d4142b7689c6f
MD5 16f7ef4f5117bfb6a5cca674fd85f291
BLAKE2b-256 cd8e90e371f26649b54bcb5acc93153e5ed336c06b00dc0b6f491a292e47fc71

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ttfautohint_py-0.5.0-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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for ttfautohint_py-0.5.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f63b3944e279ceca056f77d1120c7bb6ef53a77b3bb8effb75f96be899900313
MD5 837ee48af10c02e05d4797c4509c5664
BLAKE2b-256 dd628243a6cd29a68236c0c7bbb391d72c3bc7c625ad4f121ef44fb08cdbddfb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ttfautohint_py-0.5.0-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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for ttfautohint_py-0.5.0-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6369efa873c59e169e33e0e402f3c4f6b5a2cad8abf328ab03b79b2c3559f421
MD5 bf502b4bf96246e5bda45dadccb766ab
BLAKE2b-256 4bd9952cfdbe12a8afbf3de556e8279516025da9dc2eec83ecc481a37e94be85

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ttfautohint_py-0.5.0-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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for ttfautohint_py-0.5.0-py2.py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 51cf3b9fa5d82acc104fe72256d3e187f797eaf55e4688c45c1b9bce2c13d305
MD5 2039248e0c2012bb7c4e9e19970143d5
BLAKE2b-256 de33eef93e70c3cb3d6a390a79b1f69c03bc7406f9111c753c37369e6ea68572

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