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.

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:

pytest

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.0a3.tar.gz (185.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

psautohint-2.4.0a3-cp310-cp310-win_amd64.whl (136.0 kB view details)

Uploaded CPython 3.10Windows x86-64

psautohint-2.4.0a3-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (144.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.12+ x86-64

psautohint-2.4.0a3-cp310-cp310-macosx_11_0_arm64.whl (126.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

psautohint-2.4.0a3-cp310-cp310-macosx_10_9_x86_64.whl (132.4 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

psautohint-2.4.0a3-cp39-cp39-win_amd64.whl (136.0 kB view details)

Uploaded CPython 3.9Windows x86-64

psautohint-2.4.0a3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (144.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.5+ x86-64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.9macOS 10.9+ x86-64

psautohint-2.4.0a3-cp38-cp38-win_amd64.whl (136.0 kB view details)

Uploaded CPython 3.8Windows x86-64

psautohint-2.4.0a3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (144.7 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.5+ x86-64

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

Uploaded CPython 3.8macOS 11.0+ ARM64

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

Uploaded CPython 3.8macOS 10.9+ x86-64

psautohint-2.4.0a3-cp37-cp37m-win_amd64.whl (135.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

psautohint-2.4.0a3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (144.7 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.5+ x86-64

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

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for psautohint-2.4.0a3.tar.gz
Algorithm Hash digest
SHA256 27fb9efd08828e05d7d3f60b6d56a8210122ef912171d9ad78e822828c911371
MD5 b816711f0b0e1e39a622c769dbc5a07f
BLAKE2b-256 0304dc8d144b31a7e5ce8f910ee7ffd7746dd452538755bd34b04d7760221159

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a3-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.4.0a3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 136.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1512aeb7bf57c246aff3065163eb5add0fce5e08ab71ec313a26663c58c40e7e
MD5 e258d478e203feeaeeb33023770c29f3
BLAKE2b-256 54016d745b5f857095ed906b9831b34b8a3c5dfb580abcfa6a273cc5e6a06270

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a3-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for psautohint-2.4.0a3-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2c37a24ece6cbd2c966c070c7b86aae9b3663cede1180a96ecaee260fd0c1590
MD5 81d64cb2d3b86f75fff114bfbe18922c
BLAKE2b-256 25304ce93bfb03583a9513b678ac8bc537e813c04f36ec24c0abda4ea3b9a4dd

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

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

File hashes

Hashes for psautohint-2.4.0a3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2093f0fb2777ba36b1403d41fa7e494f96090587aeec66c1a129618d1de9cd7c
MD5 7fcedfcee15958e9bc06e27250812a6c
BLAKE2b-256 bbe6f91a6804bfa3939311a0731471fea9cf70e90987f1cbab75d0b08ab23f6a

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0a3-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

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

File hashes

Hashes for psautohint-2.4.0a3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 399e87d21d4137a74081c808864dc0d8bfe24baa10494cd1962f7e6646685493
MD5 a6f0222817aff346385114f4c9bf0ab0
BLAKE2b-256 52072fb487d35fb086a410c8b2f281dd4083d96008666d50021946e138634e7e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for psautohint-2.4.0a3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 447de5e58449de1fda3208c73a5677dc581a27eed4cf579147ecc544b01e9f0a
MD5 c5b3c2cafec68b2c7688445942a47d28
BLAKE2b-256 ca1132b0c2b8f3854ad903901d4fe61d76475167e740d27e009aa50e92e8ba17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psautohint-2.4.0a3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ee77710c90a32aa49cc857990de5ca91bef2303ddc59cec22c28ba47e4a7369e
MD5 748af5aed94b54216e2df07ee561bbd1
BLAKE2b-256 51e1e79da78cd6af29d1429a6f97da0155f6ad89b3adc56e38eb8031b6dafbcf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0a3-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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 877230eabd5f0728655b91c66e9965692de2206063e61ee6550f1e3b2b990188
MD5 2262587ee85685931ea50e13964763f1
BLAKE2b-256 f5406d41e095576a61d92f96eb290f74a10b060c893d090fb21b0a3a905755eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0a3-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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0794e58345e2f225f9595b89012f48c9ead97353de2cd0364236bd38a4b57cb9
MD5 74e0e1927669ba53d640d2126ce3c442
BLAKE2b-256 e6744cc32077844499e45e187840c9e83569f28091918c3f29aa30aa26dbf070

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for psautohint-2.4.0a3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 29c98b61392713fb355468a326effbf9611c236d6f72f4529df65af392041cca
MD5 ee9e403424958c6a8eb25f35a50c1e41
BLAKE2b-256 7107529f7aa75cdcccb813a848ad5f3350a90542b2f2bae02bace1401dedf356

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psautohint-2.4.0a3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4ebbe98ef8d6a7ada710ff13bb38efced7fabad07b39282e74734f8e1de8314c
MD5 6330690d33a357b1f572e8d64a11270a
BLAKE2b-256 5a455fcbe9951e4c1a35bd5c443d7a3739dbb1279af4f7a506f7ea39aaef5c6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0a3-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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e224acd28f228976667dc8075013f7b759b534ab94e5f34a1fc0ce38cd69380
MD5 46b977059991c946a367ddc39448c9c3
BLAKE2b-256 5538b25b663ce8d9b44adaee4742cc3c9ac1d916961516f969c6891edcf78f0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0a3-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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ea0c03bdf6c1f9448608dc45bb8e7e596dfb1fc218fdfbd463de57b36dbf72e4
MD5 5d5c7536f390c3d9ed50e6185d1306b5
BLAKE2b-256 61023a4b570646c8e695d9b26b014db72ac9546bb21daee5362cfbb2d0b058a1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for psautohint-2.4.0a3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f906106485d1ed34c2b603cb38a47c65829f793c2fd74f9f0134c245114a139e
MD5 4409d8ecd90fbcf8d1c2d0f9122c1aae
BLAKE2b-256 39a4a7a98fdea1dad45626237ca28d74425de7a04c7fece89fe19b77b98aaef9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psautohint-2.4.0a3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e0cef33043c36c3517d41e6ef6009383e26448b8cbf35cb35e89ebac864d2d62
MD5 ef476dbda6b117a92f3e7670fe0cc7c8
BLAKE2b-256 f25209456e0cf32a6f25c5b2bfcbca5ef3cc16cbc5b0a2ca7dc795209fb598a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0a3-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.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for psautohint-2.4.0a3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 977bf61b1f736430d999606d4f347c76a0c71ff59af8ede0d203da3d01c2fdb9
MD5 0eedd020558d92ac2baad96bed5021bd
BLAKE2b-256 ad760511cb36d8f8d4f5f7d9f4a027574c05cc670a7b4c420bf7bda475683dab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page