Skip to main content

Python wrapper for Adobe's PostScript autohinter

Project description

Travis AppVeyor 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.0.1a0.zip (233.2 kB view details)

Uploaded Source

Built Distributions

psautohint-2.0.1a0-cp38-cp38-win_amd64.whl (236.5 kB view details)

Uploaded CPython 3.8 Windows x86-64

psautohint-2.0.1a0-cp38-cp38-manylinux1_x86_64.whl (211.4 kB view details)

Uploaded CPython 3.8

psautohint-2.0.1a0-cp38-cp38-macosx_10_9_x86_64.whl (223.5 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

psautohint-2.0.1a0-cp37-cp37m-win_amd64.whl (236.5 kB view details)

Uploaded CPython 3.7m Windows x86-64

psautohint-2.0.1a0-cp37-cp37m-manylinux1_x86_64.whl (211.4 kB view details)

Uploaded CPython 3.7m

psautohint-2.0.1a0-cp37-cp37m-macosx_10_9_x86_64.whl (223.5 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

psautohint-2.0.1a0-cp36-cp36m-win_amd64.whl (236.5 kB view details)

Uploaded CPython 3.6m Windows x86-64

psautohint-2.0.1a0-cp36-cp36m-manylinux1_x86_64.whl (211.4 kB view details)

Uploaded CPython 3.6m

psautohint-2.0.1a0-cp36-cp36m-macosx_10_9_x86_64.whl (223.3 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file psautohint-2.0.1a0.zip.

File metadata

  • Download URL: psautohint-2.0.1a0.zip
  • Upload date:
  • Size: 233.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.3

File hashes

Hashes for psautohint-2.0.1a0.zip
Algorithm Hash digest
SHA256 a5dd237606eb0febd21c48dde8c935efd4bda6431fafeb94402805c6aae02e94
MD5 3335540373c5cf0f2787f6be42f1ad8a
BLAKE2b-256 d5d3047fb0a4fbc7f842bb26aabd1d9ac88abef3992b2a9616bf325c865f94d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.0.1a0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 236.5 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

File hashes

Hashes for psautohint-2.0.1a0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 77e412f5200f20505add69047a72fce32c246071692d794f5cbb1d0ed5201192
MD5 5e7d1e719baecd8094b939b291d4a298
BLAKE2b-256 a7268033fb22b4959668c71d987d3d93dc8bfca0c90a3e224318b8f53ea46ac8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.0.1a0-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 211.4 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.3

File hashes

Hashes for psautohint-2.0.1a0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6d01853b0e866d3b2ac6fea553f45826597dd8b841f90ebb5fc6dd4883bb5ffe
MD5 cf18557f7ada3956c3a6829917f282fb
BLAKE2b-256 7275a387d730cb200158401de5f5492ad9301a12c433fdad473c2ed3f6041ef3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.0.1a0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 223.5 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for psautohint-2.0.1a0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6d833746f50afe7ebe72f7a8b8b0a2cd6c1481726097be6148a1a8a2048739a0
MD5 7ace10743b922b46431fb7d11b10d48f
BLAKE2b-256 c81d5ef2dca9fd4913539b380e46fb1601837b6ac91b4305f92b9631061ed391

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.0.1a0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 236.5 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for psautohint-2.0.1a0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 25be00cb0f7bfb408a208c5b96385f25a66a05cfdf62919182d8ee5a540c77ec
MD5 91395ff16442bbb4ae039686fc71572a
BLAKE2b-256 17eb4f0d62282465069201516349609aff07abc8df99d8f673527aaf23cf146e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.0.1a0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 211.4 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.3

File hashes

Hashes for psautohint-2.0.1a0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5c1372c5093e9af03ec0850d4855bc689631e5fbcc02bf07c0e2f1011a0e2fd6
MD5 4311e4c80ab35f805d66cc94a8c83f04
BLAKE2b-256 5e44684115203a6dd53c48c71437225811eaa79fbe83aafdf8bb5099025453dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.0.1a0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 223.5 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for psautohint-2.0.1a0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 446a60c2c61fae6b7cda28829ff6eef2c90a82d894f804d1881d63f614f1bfe4
MD5 6731b6d96a227a6bef1592c4ee086f7a
BLAKE2b-256 611e738c4566e8479c48b7ac6b564e633275e15492c3e6d3a2529a4fb82cff3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.0.1a0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 236.5 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

File hashes

Hashes for psautohint-2.0.1a0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e5ae7983013db1f0b201eecefc5420d96626c3a4627289c192f1b1e07a415f54
MD5 1bf4acc53ccdfcc4aeda5c102713ef6e
BLAKE2b-256 336834742c4f34d2cac0f5d330be254ad75c33366b892162d67174c2e5bb0562

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.0.1a0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 211.4 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.3

File hashes

Hashes for psautohint-2.0.1a0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8b59fca77758187dcbb904318bb0ed6b0b04a0adc834bef7d89cb204b11cb9ff
MD5 2e909599b800a4de3bd898bba853cccc
BLAKE2b-256 0b55249b2592e1ff1512b211ee359ecd40516eb5ba2f4680946b05bdaa16130f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.0.1a0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 223.3 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

File hashes

Hashes for psautohint-2.0.1a0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7b889832bd12de618fa4030071463f4331dc8595977a9f0dd8871d0d819cf38e
MD5 efcf9a710066a85f339d4ca4320b1d66
BLAKE2b-256 88f6f5912ded06feff87c81d67fc3d56cdda521782afaacc9d7d9c1268d04980

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