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

This version

2.1.2

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.2.zip (239.0 kB view details)

Uploaded Source

Built Distributions

psautohint-2.1.2-cp39-cp39-win_amd64.whl (265.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

psautohint-2.1.2-cp39-cp39-manylinux1_x86_64.whl (591.1 kB view details)

Uploaded CPython 3.9

psautohint-2.1.2-cp39-cp39-macosx_10_9_x86_64.whl (221.1 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

psautohint-2.1.2-cp38-cp38-win_amd64.whl (265.4 kB view details)

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8 macOS 10.9+ x86-64

psautohint-2.1.2-cp37-cp37m-win_amd64.whl (265.4 kB view details)

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file psautohint-2.1.2.zip.

File metadata

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

File hashes

Hashes for psautohint-2.1.2.zip
Algorithm Hash digest
SHA256 fb5761ad7e3fa6adf0266ea8b50de6afd04e95fdef32fa4e70a318889e3bbf44
MD5 ff2c7b54c911b9393dd8914485e9b15e
BLAKE2b-256 b637d10ae4fd2252162de1b4b4e098aaebc432fab2392d01fc81adf8ff90a2fd

See more details on using hashes here.

File details

Details for the file psautohint-2.1.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.1.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 265.4 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.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ea867f7ddc83102e670e87b39527ccc658eafa56f4293bc1f92f04470a6247ae
MD5 6b514f45f249b724f15cb1a51ec64044
BLAKE2b-256 b11f422cdc9b15063de6d736821bfd9c0dc92ffe668074d21a4897b7afd5457c

See more details on using hashes here.

File details

Details for the file psautohint-2.1.2-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: psautohint-2.1.2-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 591.1 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.2-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 85e44706b20fe7b185d28cff5c961b087e620a9431f38151617fbc7cd37166ca
MD5 e4c4cf4a027cf8874466d567e62763d6
BLAKE2b-256 518424db0c2c48d7eddfd653c99d8f58a56c42bff88be9468960a4b2ef92bc15

See more details on using hashes here.

File details

Details for the file psautohint-2.1.2-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: psautohint-2.1.2-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 221.1 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.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 56b541d935cdb247c2467293bdfb1e79ceb38f07ef5f37f10f2bfba771c238c3
MD5 daaf32c67b7c813429c0292104084a92
BLAKE2b-256 f103bbf20f3926ae9e2d79e8aa53b545285bb5320917f7ddd83dc466535d3a32

See more details on using hashes here.

File details

Details for the file psautohint-2.1.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.1.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 265.4 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.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6ebd39e22be5569cd6ebd91b3c2f24dcd8b5e867a152857f1b49d0fb07585ddc
MD5 4bd658f368acf8f7908408ea8aa703c3
BLAKE2b-256 bb3e029404b9b3fff47f9325821ebfc736d47ac63da33a0ab3e46251f7a1d81f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 591.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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 602fc73bc92022aa3d7f0e365d4c205c23894a6567e25248ac0ba5bacaecc5ac
MD5 6e38598fda71cab5ed872e4bce628527
BLAKE2b-256 513569d530d45a7e75e6ce84949ccebfc9f435c7df7de78992b9787b33e7d319

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 221.1 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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fc61c9ea67d71a8d9b584a7b3e46be1b16b19991ee50876bcb8f952853668efc
MD5 b96d0ee98873395b5460d11aaa59234d
BLAKE2b-256 a96f19be9f90e95ab72e11234ae2dedd71f7ef3721083921edbe53e021502b1c

See more details on using hashes here.

File details

Details for the file psautohint-2.1.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: psautohint-2.1.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 265.4 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.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ce85b0686634267cdc34a11bcbda4ee797d3f5a06eca35fdadbfce137514e8f3
MD5 e472d1b7e83ffc183fe6eeb825df9b30
BLAKE2b-256 a38ff132234b458785a72c47df7c4454674ee62cb6447efc6d745d7f3a22f2c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 590.9 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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e5538005ae3d24eacf6585a8bb300c68325fa31d00a99f49bd8d55e68efe5177
MD5 db9ca43ef5ec7e8d52a917c7a75872c8
BLAKE2b-256 29a2e0960c8502346f107637e5f70ed3aa22a3131e338aaa74172249542575ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 221.1 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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 99410d048fda2dea66ed8d2dc08710dfa9a67716a5f25db841ebebdd6a420f11
MD5 5d4f39e42af9f629dcfc44035f4d016a
BLAKE2b-256 e721d7fcf26120dc00c263d1272d016bdc3e7eeb30f981717b80ffc583007ed8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 265.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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 dc8dc2b7ad71991aa94a0b10ae457b806374f47ea4837f915fb7fe9e4c24ed24
MD5 0f6cd5c6d62197622d76ccd45d0927bc
BLAKE2b-256 885b2a8ab35050523921295bb524bc2cd0acbcc0aaa81a313af7e5211ec4ce88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 590.9 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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c7486f72bedc7167d27aa9ba57c6de61b1e16f4bc2639d7b29881ce90c2bbf71
MD5 bf96238505d0867172d947a37f1e642d
BLAKE2b-256 d232398d9633a3089280a764865e3d07883d9f71dcd19ffe9b54f7a240ca4119

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psautohint-2.1.2-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 221.1 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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for psautohint-2.1.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1a964ab8d4e5e63d0881ceafd1e674af59245a800003f41e109d183a79a88b85
MD5 33e30bab77715a74f32c4b5edaea89fe
BLAKE2b-256 47dbc601071023e8f6050fd621f7ef5c07457317c65f551d884bb8351c764ce4

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