Skip to main content

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

Project description

Travis 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.2.0-py2.py3-none-win_amd64.whl (3.7 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

ttfautohint_py-0.2.0-py2.py3-none-win32.whl (3.6 MB view details)

Uploaded Python 2 Python 3 Windows x86

ttfautohint_py-0.2.0-py2.py3-none-manylinux1_x86_64.whl (2.9 MB view details)

Uploaded Python 2 Python 3

ttfautohint_py-0.2.0-py2.py3-none-manylinux1_i686.whl (2.9 MB view details)

Uploaded Python 2 Python 3

ttfautohint_py-0.2.0-py2.py3-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (1.4 MB view details)

Uploaded Python 2 Python 3 macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for ttfautohint_py-0.2.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 39d663be3395ee432b9da11c901640b96de4c69a3d038ae2cd6cc2807a90cc3d
MD5 5782f0ce84aed94e31e372ef06560a07
BLAKE2b-256 70e187a82ad2adb955394e9e9a97dc4dbcb4e9f24c5c89f0f443f9ec7a04e0e4

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ttfautohint_py-0.2.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 8e369e289b4e08906bee10dea6d46a4d475b11f7126eea838132c25fb004912c
MD5 dd583790eaa27d70ac2fee50ab179074
BLAKE2b-256 b6731fb2ee4731b1a58c65277ce95a200434b5d0c95a292f408641f99c418e0c

See more details on using hashes here.

Provenance

File details

Details for the file ttfautohint_py-0.2.0-py2.py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ttfautohint_py-0.2.0-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2953a1c55fb17088655e6b2937c5721a96fd16843bada262a7a93c1b6bd34482
MD5 af85fa419fdab8bc23bee2b04ab8d6c2
BLAKE2b-256 3a1067d2c3e7b9ca37b24c39ae82299fcc52082fc539d9c25ac3e5693078e3f3

See more details on using hashes here.

Provenance

File details

Details for the file ttfautohint_py-0.2.0-py2.py3-none-manylinux1_i686.whl.

File metadata

File hashes

Hashes for ttfautohint_py-0.2.0-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 2bf56c0d6b699c2105a5d774c1e07f67485987c49deb17e2bc02a4cf389f24b3
MD5 37acc4fe469f63ad3e76b91fec497df3
BLAKE2b-256 3410f46a530cc03ff6ee98d6e09796314483399dddb91e3cd216da3ddf09eb40

See more details on using hashes here.

Provenance

File details

Details for the file ttfautohint_py-0.2.0-py2.py3-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for ttfautohint_py-0.2.0-py2.py3-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 1eb2e4530419a158d6ac989ea908e78529d39adc9b986842886a0f02dee8dcca
MD5 5ce214aecea83162644e27ac89f5d3b6
BLAKE2b-256 7711e454fb2fad9ad50d8f673b87f53ac1239c63e686a81fdd4ab00cb0e46ea7

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