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.

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:

pytest

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.4.1a0.tar.gz (185.7 kB view details)

Uploaded Source

Built Distributions

psautohint-2.4.1a0-cp310-cp310-win_amd64.whl (136.5 kB view details)

Uploaded CPython 3.10 Windows x86-64

psautohint-2.4.1a0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (144.2 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64

psautohint-2.4.1a0-cp310-cp310-macosx_10_9_x86_64.whl (132.4 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

psautohint-2.4.1a0-cp310-cp310-macosx_10_9_universal2.whl (201.9 kB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

psautohint-2.4.1a0-cp39-cp39-win_amd64.whl (136.5 kB view details)

Uploaded CPython 3.9 Windows x86-64

psautohint-2.4.1a0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (144.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

psautohint-2.4.1a0-cp39-cp39-macosx_10_9_x86_64.whl (132.4 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

psautohint-2.4.1a0-cp39-cp39-macosx_10_9_universal2.whl (201.9 kB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

psautohint-2.4.1a0-cp38-cp38-win_amd64.whl (136.5 kB view details)

Uploaded CPython 3.8 Windows x86-64

psautohint-2.4.1a0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (144.6 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

psautohint-2.4.1a0-cp38-cp38-macosx_10_9_x86_64.whl (132.4 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

psautohint-2.4.1a0-cp38-cp38-macosx_10_9_universal2.whl (201.9 kB view details)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)

psautohint-2.4.1a0-cp37-cp37m-win_amd64.whl (136.4 kB view details)

Uploaded CPython 3.7m Windows x86-64

psautohint-2.4.1a0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (144.6 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

psautohint-2.4.1a0-cp37-cp37m-macosx_10_9_x86_64.whl (132.3 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file psautohint-2.4.1a0.tar.gz.

File metadata

  • Download URL: psautohint-2.4.1a0.tar.gz
  • Upload date:
  • Size: 185.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for psautohint-2.4.1a0.tar.gz
Algorithm Hash digest
SHA256 f2dea438bb2f62039a9b11f163553e9563984f956edaea25732048ff6e629086
MD5 88f8038f685f6ced2b11fada85354569
BLAKE2b-256 79560452a3abc776d907a2b44377e21100242a816e66a36539aa3f27c666159d

See more details on using hashes here.

File details

Details for the file psautohint-2.4.1a0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a4334d71629a2f56b9e86d3fd1ff09c1c24569b58ccac7223b37bca1ead88ec6
MD5 925864147db01a03596e1b21e5f74e4d
BLAKE2b-256 e072499f470b8524f7051f89d4f8c9a0e132ac9b34fc600c1ad9aa40c3ca177a

See more details on using hashes here.

File details

Details for the file psautohint-2.4.1a0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 94e8e6e95b2d912f201bb9e2e916628daeb5f391de98350ce7210fafd203e71c
MD5 6891427da0629c69733e3bf50d205d6f
BLAKE2b-256 3ab447823456d93e2ebe4351da85724d740402bc295a4cab8ba2c8a8d296d529

See more details on using hashes here.

File details

Details for the file psautohint-2.4.1a0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 365c06ce5efd2a91d14b9fbdec0a23d0a499ab4a2c0a3af4c94299902aaf0a5b
MD5 ef7cf05e3822500baf487e2438966ffe
BLAKE2b-256 43e3279e550fe1a61956b9e1e41926b6cb02a4a18ac1893a60ddf6d7ba1c0309

See more details on using hashes here.

File details

Details for the file psautohint-2.4.1a0-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4b27e5674a1ef734c03c134e9dfeaed08990d5827033071d8373ecf67824d7ee
MD5 81977ea6b7aef47e626cf68814a18558
BLAKE2b-256 201a8caa4fca1c547963f37049b2ee8e0f35b83c5dc2308300ddc65d38197af5

See more details on using hashes here.

File details

Details for the file psautohint-2.4.1a0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3772998166a116fdc20568bb24f9cee646559788c29f9d3894526295ebb5653d
MD5 1ca8e5d5859dac1c108aafcf2b3e34a9
BLAKE2b-256 357044166de7c98897884475ca358461fb3c6d4450a1ff2e5e962abaa921e221

See more details on using hashes here.

File details

Details for the file psautohint-2.4.1a0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0687d3c516da83424ed9c7f10491d81ebd5bd0d6415ab2cd27faacea516ff3a8
MD5 c81eea81e9f5e1905b5121231f5e78c9
BLAKE2b-256 f8ba789b08afc8dfc033024e0253384467687af6b1773c770fb8de7a03ad6cfa

See more details on using hashes here.

File details

Details for the file psautohint-2.4.1a0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 87cac99c9ca6751766e89401e384a556c90aeeeb9f0731a29673d7f18efcb90c
MD5 73d6109d44c6a53fa4ff97049f021070
BLAKE2b-256 45bdec81a8aa49d09e8f83cdbaffcb58e29156751644e40cfa2372e5767d574d

See more details on using hashes here.

File details

Details for the file psautohint-2.4.1a0-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b6b668d3311d9297350ec5969fddf74c6f288585dfa9b33cab42dcd6f96ddfa1
MD5 9d69a6cf866c5b2d3a56d180c6b3018e
BLAKE2b-256 08f11bc490dd7e57f7132d5a8b02901a01b85a0f4b6ae4b66166ed021f435099

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9a04dbc4bb55e0bdf8e8bb96889b73334e4872d485ff139d31f780c28599d3d9
MD5 a4a7cbf44bc3805cb35fd7238ce36abc
BLAKE2b-256 c7a68644685486b537fe74553f6dff75ee175bd4b851e7c7e43158a1707c915a

See more details on using hashes here.

File details

Details for the file psautohint-2.4.1a0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7c57ad24b49f4f05e87338ac4229a25fea401fb461ecb10b769cf5e22f08dfb6
MD5 70b7edbecddeed623d58c0dec7c62319
BLAKE2b-256 a9ee872775b9a601288ce4279422431dc920c740cab3a576cd387994a4a0ec55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d237dab88723652a405cdd949fbd924f02c816ae95044a66073c22d1399473f2
MD5 a35977f7fa5b2ebf687f5e2c775c9575
BLAKE2b-256 79964d7efb8a4801baaf8c43ad035dc257af4236a3ae0cac0f4040e990136835

See more details on using hashes here.

File details

Details for the file psautohint-2.4.1a0-cp38-cp38-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp38-cp38-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ea84068ef14f9cbaa31822cdb572495559a624651757f4443e65722e6c121087
MD5 56b3a99690d2b35f261d7d494d019725
BLAKE2b-256 dba860b70d3661e2bb43bf4383a94ab2e52ef3c0130b6638efc482773dc01cc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b8e25c5ed3c42dca4c10750fbafd88ed5819aec307c056993ec9bd133bd4479a
MD5 ce2194628be0852d463adbc54f08d478
BLAKE2b-256 ccbe45ad98c6885d88ec3a5e6b678010d1b454b7b3c1e1f353d7c7ab89fd0d24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5958bc016157f9a67a336e3a47b63ea56a1d9a48b98fbf53680652eba5eb5c73
MD5 e5a4bfb15303c195d486ad580334f33d
BLAKE2b-256 99d7376e8aeb545be31fdf881c48c4550fee37541f2040b28f9ddd1c35826f28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psautohint-2.4.1a0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a1fa0643ca47e6ff7111643e837c0ae1e3db2608f48c8e9c078bd8660cdbfe0d
MD5 6bd086aefd5382574a311ca1ec6bc62a
BLAKE2b-256 816804f0dcd31913f57faf912ed7880762f42d21cd453deea6407d8cf0ed0e14

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