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.1.3a1.zip (234.7 kB view details)

Uploaded Source

Built Distributions

psautohint-2.1.3a1-cp39-cp39-win_amd64.whl (160.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

psautohint-2.1.3a1-cp39-cp39-manylinux1_x86_64.whl (144.3 kB view details)

Uploaded CPython 3.9

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

Uploaded CPython 3.9 macOS 10.9+ x86-64

psautohint-2.1.3a1-cp38-cp38-win_amd64.whl (160.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

psautohint-2.1.3a1-cp38-cp38-manylinux1_x86_64.whl (144.3 kB view details)

Uploaded CPython 3.8

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

Uploaded CPython 3.8 macOS 10.9+ x86-64

psautohint-2.1.3a1-cp37-cp37m-win_amd64.whl (160.3 kB view details)

Uploaded CPython 3.7m Windows x86-64

psautohint-2.1.3a1-cp37-cp37m-manylinux1_x86_64.whl (144.3 kB view details)

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m macOS 10.9+ x86-64

psautohint-2.1.3a1-cp36-cp36m-win_amd64.whl (160.3 kB view details)

Uploaded CPython 3.6m Windows x86-64

psautohint-2.1.3a1-cp36-cp36m-manylinux1_x86_64.whl (144.3 kB view details)

Uploaded CPython 3.6m

psautohint-2.1.3a1-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.1.3a1.zip.

File metadata

  • Download URL: psautohint-2.1.3a1.zip
  • Upload date:
  • Size: 234.7 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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1.zip
Algorithm Hash digest
SHA256 1744a79460e9773f67142f122d28afaa2943da9ac6fa353c390162b910c62922
MD5 2282c61adf4ab857be4fd6d53db0405b
BLAKE2b-256 781aa46667838b934b38300e991d29f490ecd3af8eef98799c8b46ffc8286375

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.3a1-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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7d39c137c1d4c80ebf9a27a36fb72d5d673f2e2103977061c3818f1af1821539
MD5 2f78c920b1a2eabe04111855fee39624
BLAKE2b-256 85ac389b2e1be034f40c14684c36daae944984f43a2f83e831a38ae96df10f13

See more details on using hashes here.

File details

Details for the file psautohint-2.1.3a1-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: psautohint-2.1.3a1-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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3f8adff504f8c56f553cf4f04e9633f66feb8c8559f5149cacb61a65f89aebb3
MD5 df35916fc226e746def24f752305cfab
BLAKE2b-256 14dcb5c22a9200d36d46dd2e37d2e6503d1443da3a1a2841a0cc08cb6e60fcf4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.3a1-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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fd61b7afbaaa22cf8bf8572b480c3ce45194628863326761516b50dc99fb355f
MD5 89c3573d8da0b358cdc6c58368bafeee
BLAKE2b-256 2d146445079c06cb8b90ebb091331c1aeda2ca07938821ab554122ceef65133a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.3a1-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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bb0e92621212af4fb5e77134b8ecc0ebbc4bdeb364fc16815a701a982821c254
MD5 5e4f76c0e55e881fbde4134c2b90a793
BLAKE2b-256 fc1b11b53202d07ffe4de0f1722a651fb70b9bf9851afa0c74b4dafa009d2562

See more details on using hashes here.

File details

Details for the file psautohint-2.1.3a1-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: psautohint-2.1.3a1-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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e880c412e376922963943190c027ea0dd439232b8af7cc710202e39943ab87ea
MD5 0d647068c7c37d621e8169a3dfb09d2c
BLAKE2b-256 11a64c7eaa7acfb2a3cb76295175cd3e55d5c73721194c55399d65d1f359510a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.3a1-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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 adc03ea0933562660de6e2e03b6e67b44bf929584aabdecee1a650863ca922ad
MD5 1cd09c175d9f8beac44387d3175793c1
BLAKE2b-256 260a0ef98b553ad75f13cef63f9e53f6f56a574c1e87fcad0c3af81c128ff821

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.3a1-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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 28a23615f6529387c766e8ee471cf1c7ea043ddb18ea51458ee4c031f761d330
MD5 fd536cecd10a913a9a1afe8f03efe72d
BLAKE2b-256 f4a5bc84e698aba85dc316199433c57e3e77b24415649eaaadf9bea388e434f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.3a1-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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d865dd29fd522ffa12c3aa4f66425ef6f821195a744f8b360bd72f84ed1f901a
MD5 58e3ec80872396ffff8c54df136b2ca0
BLAKE2b-256 d2be4b3cb2bcd08cfcf83d04e519113f0f65dc771555f069ed4039b66a3e7af7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.3a1-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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 12ce90c59e676852faee3b71ef28e4ee7d7344bf5f525a1cee157825c0049278
MD5 abe104c2ae0b36d6737b13833ae39773
BLAKE2b-256 97adeadb74e02b093675c9d3f1145408cec32892cc06dee1fb90d27d2a323077

See more details on using hashes here.

File details

Details for the file psautohint-2.1.3a1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.1.3a1-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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 1413072daa66dde9da33ccc4ca8914b07d594da2b9cab1334ae521073a8a3ba5
MD5 7892edd6d36135f5e584404218e9c05c
BLAKE2b-256 87acb524cc37c9fce27bc8da17c76f6acc5ebf3fcc7348bdf1299c0240d8a164

See more details on using hashes here.

File details

Details for the file psautohint-2.1.3a1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: psautohint-2.1.3a1-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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3e630eacac1a8f8d4a87724e6b83bb6ce33af9cf01c360afdf20236f6e291a4b
MD5 daf1d728790e789c871c35ffe102376c
BLAKE2b-256 805af415689f8c02ce1e9ea3132ee8af6e84554fbf2a2bd121e82eda97b20511

See more details on using hashes here.

File details

Details for the file psautohint-2.1.3a1-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.1.3a1-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.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.3a1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c5c849fdfb886a26a911f2aee59a9e2b1542cdaeb8f6f13f6bd4ca7a26f20399
MD5 547c6d51f459a929bcb2470e8b971e3f
BLAKE2b-256 69dc435d048c94879476455ec9cedda446b40448f42a938f78e12d659ff8d6f2

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