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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8

psautohint-2.1.0a0-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.0a0-cp37-cp37m-win_amd64.whl (236.5 kB view details)

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m

psautohint-2.1.0a0-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.0a0.zip.

File metadata

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

File hashes

Hashes for psautohint-2.1.0a0.zip
Algorithm Hash digest
SHA256 023d5ea0e90cb441059430f2ee00af7f7e7d8a782e3ea5d25a5f657c4a469724
MD5 f950bf82dbeb79149a15263b5b64f1ec
BLAKE2b-256 02738543fb8ac456d7096b85cc129bea3444685750ee3b6bae667af8525ded70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.0a0-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.46.1 CPython/3.8.0

File hashes

Hashes for psautohint-2.1.0a0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c55b4c2b633eba8ba46a63c35ae48728d617b9b9f4be2d3a16bc4560927f63d9
MD5 1a24a271600c6a35811a8843178f03ed
BLAKE2b-256 257b38c41182110d428cc1a6de720f5889a8491ce9ddcfc8ecdfc5bf5e6ad534

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.0a0-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/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.3

File hashes

Hashes for psautohint-2.1.0a0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cdf0ec8889c60a527d1bb71509afbe10f8876dc43603256a3531e6f24ccbab29
MD5 68073b8ed296c22977d8d759c7aef130
BLAKE2b-256 145fac50f3ba3981bc582aeee62f83502346a7ec4b0d9bc661941351179d998f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.0a0-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.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

File hashes

Hashes for psautohint-2.1.0a0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 875c68d48050c0c91ae8a6e327768073ddcc4a9054c5581c7eb4f4393669c4b6
MD5 de7cdc347d08bca64f5022c62d1ac51a
BLAKE2b-256 dc5819fda79999972b4867fb625b0bcc1e19da983489b5fbcf51daa791859863

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.0a0-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.46.1 CPython/3.7.5

File hashes

Hashes for psautohint-2.1.0a0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 05d417c59260deb7b7d5d6434fcd3cb17390c08b96cb93ab584ab41d78faf81a
MD5 fdcb22ac37a483662597a2b16412aa1a
BLAKE2b-256 0bd767f26167a956ae456c1667b1af079b618d9c3de2245d7d0c69334d9d71e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.0a0-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/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.3

File hashes

Hashes for psautohint-2.1.0a0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6cb0477f703ba8d89438c179941b8aafd650bb353465e4de24daada32e875e85
MD5 02a8991725d8fd8d92300286cfbe24eb
BLAKE2b-256 857d52502bfaab4a68f051ef76c6d4515c5c971431510d284cb6d9bfaab4285e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.0a0-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/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

File hashes

Hashes for psautohint-2.1.0a0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f17536d2dafab3e0e009cb7dfa6b9af001d2bf2a1291296f7b82f1ae88f04a2d
MD5 ec3f8b32f74027453e28ff9e0d976302
BLAKE2b-256 e87db37750f222184b6185c659f6068d543e00cd1a924db0d011cf44d490d1cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.0a0-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.46.1 CPython/3.6.8

File hashes

Hashes for psautohint-2.1.0a0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 f7457ff60cb52c30d947a5287a2a5ae47a97a862c7055b2801d9ad58f26d6ba2
MD5 b6946585af550ebf5780f4be9692662a
BLAKE2b-256 32f89951465eaf8df203a5aa72c01adca9141268ee0b57ef1d4986b42c320cf2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.0a0-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/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.3

File hashes

Hashes for psautohint-2.1.0a0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ced68d73672a1328a3f825451c60340b7840cb66c7dad1e492fcba922c705ad2
MD5 adc769f401b62f538ae1e4087d030d77
BLAKE2b-256 f433c52e943aff3adf8bfecf3c74202727e2590678b296716f8619bcbc727f18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.0a0-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.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for psautohint-2.1.0a0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5a215cf4a2804ebd3e7c7da98cadb0223ca6b53f0dcb6adc5893c834fad36853
MD5 ca68c997025b67deff229c6e826b2929
BLAKE2b-256 41a3c19a8d1ac359ae548b754db4698f1e597c8bbccfbe6b55eea5ac260beea2

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