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.3.0.zip (233.4 kB view details)

Uploaded Source

Built Distributions

psautohint-2.3.0-cp39-cp39-win_amd64.whl (160.2 kB view details)

Uploaded CPython 3.9 Windows x86-64

psautohint-2.3.0-cp39-cp39-manylinux1_x86_64.whl (144.2 kB view details)

Uploaded CPython 3.9

psautohint-2.3.0-cp39-cp39-macosx_10_9_x86_64.whl (132.3 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

psautohint-2.3.0-cp38-cp38-win_amd64.whl (160.2 kB view details)

Uploaded CPython 3.8 Windows x86-64

psautohint-2.3.0-cp38-cp38-manylinux1_x86_64.whl (144.2 kB view details)

Uploaded CPython 3.8

psautohint-2.3.0-cp38-cp38-macosx_10_9_x86_64.whl (132.3 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

psautohint-2.3.0-cp37-cp37m-win_amd64.whl (160.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

psautohint-2.3.0-cp37-cp37m-manylinux1_x86_64.whl (144.2 kB view details)

Uploaded CPython 3.7m

psautohint-2.3.0-cp37-cp37m-macosx_10_9_x86_64.whl (132.3 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

psautohint-2.3.0-cp36-cp36m-win_amd64.whl (160.2 kB view details)

Uploaded CPython 3.6m Windows x86-64

psautohint-2.3.0-cp36-cp36m-manylinux1_x86_64.whl (144.2 kB view details)

Uploaded CPython 3.6m

psautohint-2.3.0-cp36-cp36m-macosx_10_9_x86_64.whl (132.4 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file psautohint-2.3.0.zip.

File metadata

  • Download URL: psautohint-2.3.0.zip
  • Upload date:
  • Size: 233.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0.zip
Algorithm Hash digest
SHA256 78a45b13a475fd83e99fd637bd908d91679c5fd765993cdb6cff1f48d93c3029
MD5 b75534103e7d069cb7fd668249c67131
BLAKE2b-256 4143598368bc85ddd39253728291a1353b940337532eb7eee8a0fbcef9b4267d

See more details on using hashes here.

File details

Details for the file psautohint-2.3.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.3.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 160.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 adf1afad8a87be9a8dcfaa230ac3eb29dae43fa43a5dbd92e5017ce0ac3b2a46
MD5 3cb0b8e3de364cf94745ad15ecda9f9e
BLAKE2b-256 0c081944d82920976686fd976662d4a917cbb02f1bb5cd1767813d68638890d0

See more details on using hashes here.

File details

Details for the file psautohint-2.3.0-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: psautohint-2.3.0-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 144.2 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 41d04213af10207f70dcfb3dc7c5f42afe18855a4d6b630eb4583e7f1a54e18b
MD5 3df45992d331dee24a5abf8ed83def22
BLAKE2b-256 e37bc1428b9b4f8b4222aced635e305fa68ccdf17b0b0887962f238c2046a7d9

See more details on using hashes here.

File details

Details for the file psautohint-2.3.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.3.0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 132.3 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 833234609261279e43b977cb297e133686e3dfbfef83fa6332aaaa8cc9a8ddc0
MD5 48385df239f71865d1ac4b516143062f
BLAKE2b-256 cf1d4edb03aa733afba7410a6d44b48a2fe1345f4d99d6a75107ecc93394bd1b

See more details on using hashes here.

File details

Details for the file psautohint-2.3.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.3.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 160.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e7338b36ed5edf7dfc8c2ed1efabbb2dde19a8410f76e5826501f81c959b177a
MD5 42305686d5ea63482157d411e84ca937
BLAKE2b-256 4b1b58def77833e6ce1cea43f6bafb005e650fb127e368846450a297fd90a6e5

See more details on using hashes here.

File details

Details for the file psautohint-2.3.0-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: psautohint-2.3.0-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 144.2 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4bb8ef134aea7318d7cf54766b7e2b49242f89f7fbcf3353688ec82f1cfe3659
MD5 2057b4880b845374ff40fd4fcdab7245
BLAKE2b-256 dcb8bcd3336a123ae2612df6c97af8147f17ad31cc8c1e594197249d284bc3c1

See more details on using hashes here.

File details

Details for the file psautohint-2.3.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.3.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 132.3 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e07a8b3ecdf24ab185f907c551de5e64913bcaec841697be05b5c3675d0c6919
MD5 00e6251dfdea05b330b0ab184fd03e9d
BLAKE2b-256 449520d409c474572c3dbc76a66a32726de33591d8e38b5a78251dc3cfa162b0

See more details on using hashes here.

File details

Details for the file psautohint-2.3.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.3.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 160.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 377a3929e462e43187ad42ececc905d303f6d961d51f8ccb6600f16387118530
MD5 fd07b0c4ef68d7bf3c741758d8f0be8c
BLAKE2b-256 5b04305c18a1d6ea4f1b6be56f9306a52a3f69efce33869ca0a01f76162cfb46

See more details on using hashes here.

File details

Details for the file psautohint-2.3.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: psautohint-2.3.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 144.2 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 66237b6d91a9b28569d17aac3e3477231520a72fde8a181338f6ce5a5a734b3d
MD5 f61d08bad20060f05aad3a4bd5f86de0
BLAKE2b-256 e067d2b475f66fdb0a998e8bc35592523e843555ddd9eb3a74f5ff847f8e1928

See more details on using hashes here.

File details

Details for the file psautohint-2.3.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.3.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 132.3 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a7cead529feb923dde2f6d78a55cfc094507b582ac7a3357c91d6b034105f4c8
MD5 8c0ab299ae0882bfa7535a264c483d45
BLAKE2b-256 95970f36091b86c7f872a4a36095655f6dcd4ed04e59aa4455c941d0c55eceb8

See more details on using hashes here.

File details

Details for the file psautohint-2.3.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.3.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 160.2 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 af9c6c8a16c80c2e1f621d927125508f71bd2fa8875569e15b45982bda202d6c
MD5 1d7d93c6d04e44636208e4de87d5f157
BLAKE2b-256 60989e149783ca950d0b398c1427a3c6bcfe4c1e3cd5a7ec561dc71e905abc11

See more details on using hashes here.

File details

Details for the file psautohint-2.3.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: psautohint-2.3.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 144.2 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f702525519f4caa494d5ed00bd9d809d0324883f505e46ed901be8fa65ebde27
MD5 973e6957acb761cb31b51eea938831b9
BLAKE2b-256 a08095563b65dc5703e9a65793e0a8e5b4476d94354fddedd052f0b30600dcfd

See more details on using hashes here.

File details

Details for the file psautohint-2.3.0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.3.0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 132.4 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.3.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 af02fd9d677e331daa843a0017447f8a55e5a90f3a49fa27217717be9f080a26
MD5 9650445854ad5aa6f73178fbce1be783
BLAKE2b-256 f5140b5e48bf1c9f61f2c5d1448630ebe4197cf0a6215d38ddb19ecba59e34ce

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