Skip to main content

Python wrapper for Adobe's PostScript autohinter

Project description

Test and Build Codecov PyPI Language grade: C/C++ Language grade: Python Total alerts

PSAutoHint

A standalone version of AFDKO’s autohinter.

NOTE: as of August 2019, only Python 3.6 or later is supported.

Building and running

This repository currently consists of a core autohinter written in C, a Python C extension providing an interface to it, and helper Python code.

To build the C extension:

python setup.py build

To install the C extension and the helper scripts globally:

pip install -r requirements.txt .

Alternatively to install them for the current user:

pip install -r requirements.txt --user .

The autohinter can be used by running:

psautohint

To build just the autohintexe binary:

python setup.py build_exe

Testing

We have a test suite that can be run with:

tox

Debugging

For standard debugging, build with:

python setup.py build --debug

It is also possible to build a debug version with AddressSanitizer ("ASan") support (currently for Mac OS X only) with:

python setup.py build --asan
pip install .

Once it is installed, you can use the util/launch-asan.sh shell script to launch a Python process that invokes the ASan libraries needed for debugging. Attach Xcode the launched process, then execute code in the process that triggers memory usage problems and wait for ASan to do its magic.

NOTE: be sure to build and install psautohint as described above; using other techniques such as python setup.py install will cause a re-build without ASan and debug support, which won't work.

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

psautohint-2.4.0a1.tar.gz (186.4 kB view details)

Uploaded Source

Built Distributions

psautohint-2.4.0a1-cp39-cp39-win_amd64.whl (160.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

psautohint-2.4.0a1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (144.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

psautohint-2.4.0a1-cp39-cp39-macosx_11_0_arm64.whl (126.2 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

psautohint-2.4.0a1-cp39-cp39-macosx_10_9_x86_64.whl (132.4 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

psautohint-2.4.0a1-cp38-cp38-win_amd64.whl (160.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

psautohint-2.4.0a1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (144.6 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

psautohint-2.4.0a1-cp38-cp38-macosx_11_0_arm64.whl (126.2 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

psautohint-2.4.0a1-cp38-cp38-macosx_10_9_x86_64.whl (132.4 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

psautohint-2.4.0a1-cp37-cp37m-win_amd64.whl (160.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

psautohint-2.4.0a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (144.6 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

psautohint-2.4.0a1-cp37-cp37m-macosx_10_9_x86_64.whl (132.4 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file psautohint-2.4.0a1.tar.gz.

File metadata

  • Download URL: psautohint-2.4.0a1.tar.gz
  • Upload date:
  • Size: 186.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a1.tar.gz
Algorithm Hash digest
SHA256 4f8069add186740ebaec06c78550f4483ad0f55bfa9ae47297dd4a88391b3647
MD5 ab3f45bd957c111ac0bd499c8862413a
BLAKE2b-256 954d1545e84b5db9239a88159272ad1d37306b2c30a4c07707c4e685c59ab1e7

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.4.0a1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 160.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5c4245b501547c6627e06f3eacfaab0698b941c4bfaa88cc811d7f88e4b2dd04
MD5 60beef9030b1bdce617ad3dc8a1d903a
BLAKE2b-256 11c7c6ed9f31e0fec676a45fd3a37dc833f9a336258968c5d4fddf3b0fe9815d

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for psautohint-2.4.0a1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 71e28378444c91b39b98ac3c96e6847c15a5a13bda0ae290f4adfd2e9157487d
MD5 6bd7c5c24ec5142a442b50329b448dff
BLAKE2b-256 8967e7e4961a98e036ddd8b77873c5f0f6aa2685503aa6cef3c2de02e36a25ed

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

  • Download URL: psautohint-2.4.0a1-cp39-cp39-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 126.2 kB
  • Tags: CPython 3.9, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e976bb6e6c75d43292c789d7a0734593ae3b22d379fb8d223089d27150fc157
MD5 88c6404756bcc41eb70b80aae0b5b297
BLAKE2b-256 1b60ca410c4c34f63be62a531fcdfc0d370c05ef2498c4e10e6d49620b1040e2

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.4.0a1-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 132.4 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 97f8b495f87cef661a10d09b582cef6758f6684a6b92809c3b770e60e148214e
MD5 63ebc3f7213f6566e929c7a5af5bbd8c
BLAKE2b-256 1813314ee580bf96666a1eb1c063363dc5ceb607e075e40b067056b4ebb46ad1

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.4.0a1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 160.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0f259280f2fe1bfdc2fae559e44c2b7d8c3926ac889456c83593042f0b731e0c
MD5 bcc2575b00df8d78670cd5e82c3e69e2
BLAKE2b-256 67d754bc9a4c1994bb31c5517dcb63e0d11d241ee1e0dda4be9f703aceaff7cf

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for psautohint-2.4.0a1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 042d59092347aa0b08fc35cd6083ce9b2b99e99239edf3d61d0d7a784940bf23
MD5 0ce9de54788f2c20f1446eb2bb95047c
BLAKE2b-256 5987bd5601e23cb5f7fe739488252e92816bdb69dcc1386cedc4ec7a2fd1c6b5

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

  • Download URL: psautohint-2.4.0a1-cp38-cp38-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 126.2 kB
  • Tags: CPython 3.8, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b79328f23d46cbb61673749cc33fc8625c6861d5a3afa77e852ccca3bd4ef25b
MD5 23f5fda96272c6bea7cf95fa9d192433
BLAKE2b-256 19f66869255be8a5f95dcf172ea32f999d600da7465b250da50ed18599452a5a

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.4.0a1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 132.4 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6500d7f3e97df67dce099b98faeec9c5461995d5456ec0ca263ec8f468ec0e4e
MD5 3285ed6d5f5e271495a51355fdcab95a
BLAKE2b-256 cb3c4f550029491ed293c727f61cddde28b94a358084fc5fb76b92656689bd0b

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.4.0a1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 160.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 58e2ce50468e17a5dee9b28fa799cd873285b20abd71915f0d737e4cad50647b
MD5 a22703dcebbc62f7ba681da3dbaf9255
BLAKE2b-256 35e0549089706b2572c75d18904d9f590a9a33b402f46d917d1421f47c49618e

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for psautohint-2.4.0a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 573058132e3a0c9f0c7a7e7a6dac11296deb34117fb8a23555824830e85a56be
MD5 6a1229f06f49cf9e2539b4ff9440d8fb
BLAKE2b-256 071bb913e49f0da275ed05d0094e42941af243920071e5db65528d43b683f392

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.4.0a1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 132.4 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 02d63a153bd9cb8dd20ff588af16354d6980ddf8a91b99255324ded880a4f8aa
MD5 2b5c6b9d6618e83462c8bbd85d84fd5c
BLAKE2b-256 f88c4409ad6599a0a18797ce7aaa655d69a69a571e046916399a8ff9b13b4e81

See more details on using hashes here.

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