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.2.0a0.zip (233.8 kB view details)

Uploaded Source

Built Distributions

psautohint-2.2.0a0-cp39-cp39-win_amd64.whl (160.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

psautohint-2.2.0a0-cp39-cp39-manylinux1_x86_64.whl (144.3 kB view details)

Uploaded CPython 3.9

psautohint-2.2.0a0-cp39-cp39-macosx_10_9_x86_64.whl (132.4 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

psautohint-2.2.0a0-cp38-cp38-win_amd64.whl (160.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

psautohint-2.2.0a0-cp38-cp38-manylinux1_x86_64.whl (144.3 kB view details)

Uploaded CPython 3.8

psautohint-2.2.0a0-cp38-cp38-macosx_10_9_x86_64.whl (132.4 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

psautohint-2.2.0a0-cp37-cp37m-win_amd64.whl (160.3 kB view details)

Uploaded CPython 3.7m Windows x86-64

psautohint-2.2.0a0-cp37-cp37m-manylinux1_x86_64.whl (144.3 kB view details)

Uploaded CPython 3.7m

psautohint-2.2.0a0-cp37-cp37m-macosx_10_9_x86_64.whl (132.4 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

psautohint-2.2.0a0-cp36-cp36m-win_amd64.whl (160.3 kB view details)

Uploaded CPython 3.6m Windows x86-64

psautohint-2.2.0a0-cp36-cp36m-manylinux1_x86_64.whl (144.3 kB view details)

Uploaded CPython 3.6m

psautohint-2.2.0a0-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.2.0a0.zip.

File metadata

  • Download URL: psautohint-2.2.0a0.zip
  • Upload date:
  • Size: 233.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0.zip
Algorithm Hash digest
SHA256 1a6535685d10c96a09dc0fb68f835018fd0899c9eb58ec7915a6ab31604e9ce3
MD5 aabbbe7375964ee3e0e3cdcaddc6026e
BLAKE2b-256 90aa6128c17cec6d3795310e9cc7442aecca5528f6e00735acb164d91da17b7d

See more details on using hashes here.

File details

Details for the file psautohint-2.2.0a0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.2.0a0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 160.3 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4150c1a4cfe168a71e7fd303600aafa817406f97924bd6c1c70659b4b5e1ca77
MD5 3cdfec52a92473e63fc1671e2b00a014
BLAKE2b-256 416bd64264152659c0d09d5c5f76970dd78c8d9efdf273857fb6b010dab70b82

See more details on using hashes here.

File details

Details for the file psautohint-2.2.0a0-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: psautohint-2.2.0a0-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 144.3 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 55d4e038e46aa23f7ab2a63b989ddf2236f4881f361791196fc9071164353207
MD5 cc326a362f0a32d12eb4a09a5f9bf695
BLAKE2b-256 d29b7752627d41fdbafad0b7cd559e72b15939b326496565f98cdd326d80fe72

See more details on using hashes here.

File details

Details for the file psautohint-2.2.0a0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.2.0a0-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.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ae5d2024dabe92da2e481ba2fb6ec57cb00b1781b1c85ff4dacf360deb51be7d
MD5 13176eb7d322beab3b981f224d11e809
BLAKE2b-256 8578c441dfdd2a746b65b2b2e4a75d187cc0ad797919ed20b11780b0d7323a0c

See more details on using hashes here.

File details

Details for the file psautohint-2.2.0a0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.2.0a0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 160.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 727916903b3ef5135b52e2442f1295ca844d068a4ee7976d552ab9029b2219e1
MD5 d0efc2291f4351eaa38d8ae990467d09
BLAKE2b-256 081ed06387488f156d3544975e8cb5a1084873fd6c675683dbec7056294911be

See more details on using hashes here.

File details

Details for the file psautohint-2.2.0a0-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: psautohint-2.2.0a0-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 144.3 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 51d457b0d487ffa0a9412e752ea00a4d62ac73cb65763a195f947157725358f9
MD5 b862eadc90b2ff2edb10c30bd2a63d0e
BLAKE2b-256 c6dec82b9cfe955c122073da7b544785d706440c60a4c6e29f60f51d9d62d2fb

See more details on using hashes here.

File details

Details for the file psautohint-2.2.0a0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.2.0a0-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.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5af9c3c6907b50e32d81a22d56e59108f24b499b5d3f3c20a0cd1788f1eed2f3
MD5 11fa04d0ea9be891b0692eec8f9e4a4d
BLAKE2b-256 abfc0c71b093cb3a2ae837f6fe32f4c6caa6da5e5ca88022fe3081b9c8e5eeb5

See more details on using hashes here.

File details

Details for the file psautohint-2.2.0a0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.2.0a0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 160.3 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 6f77934f19e68ea10a5b87e7d2194e5a1ba0696552b17b7aaeaa886357d2d8ba
MD5 b255d79701051571f0a0b5f68d041a5f
BLAKE2b-256 7639cd940a2dc30689c55b223b671218546d9b9579804db7dce3ce17b743a606

See more details on using hashes here.

File details

Details for the file psautohint-2.2.0a0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: psautohint-2.2.0a0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 144.3 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e2091f949a7e8283cfd54ae900215fe233cb3500140bd1353fc41ce11ccb36c8
MD5 12098d949796846df43625a4bb0ba879
BLAKE2b-256 f1db09fc8ea7c3e1d231f930176de53f8da8f25f62eaa52371e169b48bd8abdf

See more details on using hashes here.

File details

Details for the file psautohint-2.2.0a0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.2.0a0-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.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 333cc5e2040313b3ee469d668f4c3c00cbdd557fba280d2f9a57ed8944d9cb57
MD5 a4f7ca1b978a7cb36bc7e01c70bdc5d6
BLAKE2b-256 acab700c54ad6b8700ab0f377a90f3dc2e7b5aba173031803457725fed2d9f9b

See more details on using hashes here.

File details

Details for the file psautohint-2.2.0a0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.2.0a0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 160.3 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 745973fcc904a51f45e915db052f70f64bd1ddf19c9b6c247e3c09f9096b9e45
MD5 15d03b338ce41ac8c97292e69dd18d7a
BLAKE2b-256 92979c6442e4ced0bf45a65fa55bca644ddf4b3db15f5809a0514d551cd4e419

See more details on using hashes here.

File details

Details for the file psautohint-2.2.0a0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: psautohint-2.2.0a0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 144.3 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bfd81519691b7f2df6324fac15cae194961307be21f09e4520040fef39a190c6
MD5 5e07cd23a3e529ee14f674a6ba5efb03
BLAKE2b-256 8dc76b22eda2c4231cc80c9b307303e5402cc378701fb463d53a8d663701ccac

See more details on using hashes here.

File details

Details for the file psautohint-2.2.0a0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.2.0a0-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.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for psautohint-2.2.0a0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1765d4ffcee383d72239bab6eddd93f95e00e344dcec38d5231cbcd3d0419201
MD5 df7a3716985e4423a0f62a4a50315620
BLAKE2b-256 f959f0c44fc6213d690c69ff6e166ac0a4b8d2172a86dc8145bbde75fe9c58f6

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