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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.8

psautohint-2.1.2a0-cp38-cp38-macosx_10_9_x86_64.whl (223.6 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m

psautohint-2.1.2a0-cp37-cp37m-macosx_10_9_x86_64.whl (223.6 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

psautohint-2.1.2a0-cp36-cp36m-win_amd64.whl (236.4 kB view details)

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m

psautohint-2.1.2a0-cp36-cp36m-macosx_10_9_x86_64.whl (223.4 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file psautohint-2.1.2a0.zip.

File metadata

  • Download URL: psautohint-2.1.2a0.zip
  • Upload date:
  • Size: 234.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.3

File hashes

Hashes for psautohint-2.1.2a0.zip
Algorithm Hash digest
SHA256 b720f3c3cc5303e2118adc0c59f5ba384c512f9cc3a873074517d8c466d2098f
MD5 677616076e936b87b17cf0a9c3fc829b
BLAKE2b-256 890872cb615d7da66815fe1b0736b64a00dafda68b4f8c5ae65b9cc52e744ab9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2a0-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.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.3

File hashes

Hashes for psautohint-2.1.2a0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 36a349a39dbdacbc543f312bc6665b84f92ff9fb51624a8f52b8b51bfcc3092c
MD5 7103630f826950913e87a8fdf718f6d5
BLAKE2b-256 76567065833b21bc37a995afcd1814f681a379d2c1b3e4e4a2401e8e6edc653b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2a0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 223.6 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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.1

File hashes

Hashes for psautohint-2.1.2a0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c369d1645aad0aec1c85b42b99ca99777fb298aae27c157fd2e09a930081326f
MD5 53b52d741acd33b367cb4d531d9eddd8
BLAKE2b-256 76706c9f3d48b7976eb488b1c742c2d57f40285db7ee73e240e289e545d850ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2a0-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.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.3

File hashes

Hashes for psautohint-2.1.2a0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7427db615a6b8202e735069bde9a7d09b8b486bd9d5f82df741802c3b097fd37
MD5 29898bca7b5862a2d5e98151c5c8d0d7
BLAKE2b-256 3022e08782edb62e554d5d40590d2c33f1a1c1c18eb85f0307b6a9d2cc1173c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2a0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 223.6 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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.6

File hashes

Hashes for psautohint-2.1.2a0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dcd4175cd46b543cc0b15544687fc2090e0dede05541ef2d01f9e7129709188e
MD5 72b4a26b5a6909cafcdc1a0e783d201b
BLAKE2b-256 ab1807c4a1265a37ef0577f8bf5f54898ba9f6999da094bd53e10a5a5458a6f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2a0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 236.4 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.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.8

File hashes

Hashes for psautohint-2.1.2a0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 27289d859f754379d308c7f107c177fddfc6031b722e350cebf8769eb9c3dfd3
MD5 ce0bab9358be5c3a71981e6c32ce9e0e
BLAKE2b-256 c14f64c099eef48b873d5e8237758842db7faeb9a94fff7c770270545f3096f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2a0-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.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.3

File hashes

Hashes for psautohint-2.1.2a0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6513ee7dd6803a9c8a3f389b0d24cec46d5585036c8492c5ba89f14fdb7ff74f
MD5 dd16f4e5162923cf67febece3e1df195
BLAKE2b-256 3eb6c1380fecbcc961a7e7528a64889cedf105026a5d866bf17943bb89d7de02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2a0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 223.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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.8

File hashes

Hashes for psautohint-2.1.2a0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0b57c83cc063d7393df20b63fa47427b7e29e203d788d0031286a970a309b029
MD5 0586bf51e2174b72ef2f52d78072ced2
BLAKE2b-256 0c27ad34ab3d5d58f5916d9c3efed17b2ef97097a1f026ac939762e3812d22d8

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