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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.10 macOS 10.9+ x86-64

psautohint-2.4.0b0-cp310-cp310-macosx_10_9_universal2.whl (202.0 kB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

psautohint-2.4.0b0-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.0b0-cp39-cp39-macosx_10_9_universal2.whl (201.9 kB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

psautohint-2.4.0b0-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.0b0-cp38-cp38-macosx_10_9_universal2.whl (201.9 kB view details)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)

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

Uploaded CPython 3.7m Windows x86-64

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

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

psautohint-2.4.0b0-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.0b0.tar.gz.

File metadata

  • Download URL: psautohint-2.4.0b0.tar.gz
  • Upload date:
  • Size: 185.5 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.10

File hashes

Hashes for psautohint-2.4.0b0.tar.gz
Algorithm Hash digest
SHA256 113afc6a57955ad2e2a98eec10c56763dbdeee30dc4ae6cda0bae3ba6fea45dd
MD5 f35df35aed9e5bd793107f6a2bdfd0d1
BLAKE2b-256 502d7915b2f33a90b3042eb66559a51c034b89e509b96d31b06ed694f5c90efe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0b0-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.10

File hashes

Hashes for psautohint-2.4.0b0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a969d900ffd5cd0ed533e586f37c38de5d02cb13362c5507e957f0b26fa455cf
MD5 40d455f47c34c3e5dd66121ba6193cd9
BLAKE2b-256 f786c665ac72ae4621dbccf832d814b1564b621c1983a2ef8d48fcaed9670db0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psautohint-2.4.0b0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cb87375efb2b8bb2e7ebe6b86120405312ab7f89a39d000f14d2b82893daffb6
MD5 9e7395f8e260f3817807c7fd47cbd807
BLAKE2b-256 0815e231ff136245f07edf3762e43901c328e4a4300a70b57cf1e4cd65af44c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0b0-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.10

File hashes

Hashes for psautohint-2.4.0b0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 425db603333761bf262c68f63f63c95ef9e881f736abaa7fed708e468483b0fd
MD5 029aab7a6f8429727e5c4f4dae9d5c80
BLAKE2b-256 eb4766e911e8245bd5ba422ecbfd712dc79955f0de65b2435ba1fa40d7f20d3b

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0b0-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

  • Download URL: psautohint-2.4.0b0-cp310-cp310-macosx_10_9_universal2.whl
  • Upload date:
  • Size: 202.0 kB
  • Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, 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.10

File hashes

Hashes for psautohint-2.4.0b0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 03f06b6c60d40129ac4fda90c29d0ff4a6e755202bc2877955d9368dc3d42661
MD5 2dcdc9838e4d2df7a30934ef7f475ddf
BLAKE2b-256 54e9a019ebab4bf9f6079d29e1062a4859a1cee963805d2e1b2c7dbd858d8440

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0b0-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.10

File hashes

Hashes for psautohint-2.4.0b0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0fcdc56ce760dd88b8f1e9f3b771661a8180244c7fb52bcc6c7893821f581e2a
MD5 4849088f22da85bcafa5c242ecf6dc0a
BLAKE2b-256 cd350c8117105e32f8b8e7ac9ed1e2852d5e49c93ac022b006b7843c7322dc65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psautohint-2.4.0b0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2f02caa5b62ff083bcb07e73c9723cb5e6317dd2585451369bcdf6be6420b271
MD5 08e0af138f5ba20c0d04a47dbd2f2301
BLAKE2b-256 d48b32d618e80bbbf81cf3fd92d1519323838ebc3f78b0bf758ec9944cac5642

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0b0-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.10

File hashes

Hashes for psautohint-2.4.0b0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 15b7bd2b54665fe0a61eab49ebdfe1d2c1c53e5c6fa3695703953f8160569f98
MD5 3215dd180b9de730a1edbfb08a9d99e6
BLAKE2b-256 874a3a79685ceab6872c48d27b6d2de1bc1ea26a556a02b0898c4d52bfb7886e

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0b0-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

  • Download URL: psautohint-2.4.0b0-cp39-cp39-macosx_10_9_universal2.whl
  • Upload date:
  • Size: 201.9 kB
  • Tags: CPython 3.9, macOS 10.9+ universal2 (ARM64, 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.10

File hashes

Hashes for psautohint-2.4.0b0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 31ac782b80a1f5ce707129eb8f8d0acf4aeaa4cce53634c6a22cc2a062a0c388
MD5 10ee563cb759bc4499f82ef888a7d109
BLAKE2b-256 31e57264e675a05a6805246258b2e66151b13ecea38942ec33511540a71bcc8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0b0-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.10

File hashes

Hashes for psautohint-2.4.0b0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 25aac4ba9e9ce1f5ce23faedebeb83e781c8ff98079a83d6c51f481d025152e6
MD5 8041e4a886aff72c133a6a623599a09f
BLAKE2b-256 1441696755e05293142e416c1234390d0fdc1a32ad5c1748a15c4c31a17dfe5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psautohint-2.4.0b0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d15b1d54f38918b2a88529ad6e3e2bb25a9fcd449b12293af3893f1ff0e5b66f
MD5 caa6f494208421b8eb1343266cc36bc7
BLAKE2b-256 8633b1016587db83b2a4c7e406bfad6fb95635dd67a21dc1709f47b7245920af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0b0-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.10

File hashes

Hashes for psautohint-2.4.0b0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7efed68ba874999da79927ebc19e18e28811f88e3f0aaeef481b1f162626cd89
MD5 bea016824a79f9e9e18bd79390e6671e
BLAKE2b-256 14f011da0abba21e4ec111427169a414e306317e3acd133771d3e3de12c8bf8d

See more details on using hashes here.

File details

Details for the file psautohint-2.4.0b0-cp38-cp38-macosx_10_9_universal2.whl.

File metadata

  • Download URL: psautohint-2.4.0b0-cp38-cp38-macosx_10_9_universal2.whl
  • Upload date:
  • Size: 201.9 kB
  • Tags: CPython 3.8, macOS 10.9+ universal2 (ARM64, 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.10

File hashes

Hashes for psautohint-2.4.0b0-cp38-cp38-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ab966d89a8e4347db18b1e24756e22c11369c0ddbdf2f0a107a306e157ef71b0
MD5 faf71cc0ff1722a6fefe094bebd03989
BLAKE2b-256 f61f206d58c0b14dd78a0667f6f73efd32ec85e46f3a08fe342b0c73b8f7c91d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0b0-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.10

File hashes

Hashes for psautohint-2.4.0b0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 7f6ddfb26a2d0aec5fedc66694bad0b2bdbe85ec30a8b2d973dfe1773dfa8def
MD5 6b84d59e98ac46844fc33425e9dab09f
BLAKE2b-256 17ea3a3869fa489c69d96e03cc20b45d08deac2f1f85de3fb809fb593ae2a3de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psautohint-2.4.0b0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 82d32d4db74e4c5ac15d3dd36e7f3f9ac6713b3039417baab71219908ee6d3de
MD5 c156bdbf68d9fd9287cbf52d395f8f3e
BLAKE2b-256 6790017f4764621a0cb334d6115aa4d359e315d54a1a3d47badc28ce3400cef4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.4.0b0-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.10

File hashes

Hashes for psautohint-2.4.0b0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 36b670ca24d1499f5fb1187c63974d4599b9c3098dd2cc3b47b9109e4e3b2b54
MD5 8e45a816e148459ff60c917ca85e71c4
BLAKE2b-256 15ca60bdc03421cba49917792b7a17ce875b25777a9b19e6f23c850bef6fa47f

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