Python wrapper for Adobe's PostScript autohinter
Project description
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
Built Distributions
File details
Details for the file psautohint-2.4.0.tar.gz
.
File metadata
- Download URL: psautohint-2.4.0.tar.gz
- Upload date:
- Size: 185.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d50edea8f6121c3383f0d82f881bf7a18bdd476cc2d354737672ce193c3cff7f |
|
MD5 | f626eb26eb635903b1f32f6c1dcf77e5 |
|
BLAKE2b-256 | 9174014da6e9280844cec6a73a04e069d95740e5520fd9477afbf31208d0e2f4 |
File details
Details for the file psautohint-2.4.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 135.9 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc605db7e01ff9cf135eadaeb7c971613e55d7e984235bea8c10d85ce2afab8 |
|
MD5 | ff5fbda433781d469731435688f1a427 |
|
BLAKE2b-256 | 225158032adc464d717b36db45d84ecdd99e11bda7ff53bcf6cc21519ee0b4cd |
File details
Details for the file psautohint-2.4.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 144.2 kB
- Tags: CPython 3.10, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc2307eb73916d384ada74364d2e1d644129dc567b6dc593ad6249615221b9fd |
|
MD5 | 6fe449f9629a87927081abe4167b3bb0 |
|
BLAKE2b-256 | 4d5382ab305991e800b51884987803240b7e0dc25515acad20bb6894eea8fa72 |
File details
Details for the file psautohint-2.4.0-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 132.4 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12c1cd0a2b45310233dd5342f9029cbfbdd6f0f1cf532af15ff70e0b4340607c |
|
MD5 | d3adea4a58787affe28e2a22ad63c3f5 |
|
BLAKE2b-256 | c67bc6f0a355e2e7f932941b7ad1f24cba7714ff575094d1f8ee1d3af6605f19 |
File details
Details for the file psautohint-2.4.0-cp310-cp310-macosx_10_9_universal2.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp310-cp310-macosx_10_9_universal2.whl
- Upload date:
- Size: 201.9 kB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6a8dafcc16e606108536072c08e4223d564147aca1778457d312a4723584fd4 |
|
MD5 | d47f5eb0616354b449de3c7d3d70debc |
|
BLAKE2b-256 | 5bcad8a1fb0b57a4e00cc8e6d09700b2248b3c4fbf08aa9b2771f3f78abecb3c |
File details
Details for the file psautohint-2.4.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 135.9 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec1f387c8b923d5680f07b7c3aedf328dd020bb2403298fdd04cad73b3684e62 |
|
MD5 | 4f47da5fbd69305931b0f905245ad449 |
|
BLAKE2b-256 | 060d76ab2bb0813cb98b5d3411a6d5392aa013c6120c2469531fc29127bc43df |
File details
Details for the file psautohint-2.4.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 144.6 kB
- Tags: CPython 3.9, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da73fc11648ddf92f9e51a150073613d706e16267f1af4a4c4cb35c18b3dd5da |
|
MD5 | 33efe4d89156088ee367a29a9437ddf4 |
|
BLAKE2b-256 | 95578493a38eb38205e4854e09dfc88d79bc95f91b8d72c20021da05edb73e82 |
File details
Details for the file psautohint-2.4.0-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 132.4 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7676f7f9d859ed0782040e943440e3407cbdb65d412438dc3c17c6a69a4a8aea |
|
MD5 | 26b50f6601fcd7d16580a713d9da2c8a |
|
BLAKE2b-256 | 2508f3cb857acd641606eb3b96f3c1064e0f43f0bcfbd20bdc680781e7c335e9 |
File details
Details for the file psautohint-2.4.0-cp39-cp39-macosx_10_9_universal2.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp39-cp39-macosx_10_9_universal2.whl
- Upload date:
- Size: 201.9 kB
- Tags: CPython 3.9, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c78aafe6af2ddf29de0a1bec9c6bb27d586c1fbe5e7ae0072740af44e9c0935 |
|
MD5 | adbc8e0b59ec45977e5e0a5d99be6d3d |
|
BLAKE2b-256 | 9744bd0d6b5c778683116319bf6c5436eecd856accdbe22e82423b37237e1145 |
File details
Details for the file psautohint-2.4.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 135.9 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7f82992252120e5bd58f2981b247beb13318d3588c861525707512b66d7b0a6 |
|
MD5 | e692a5e34c97c97891b0bc236abf1b65 |
|
BLAKE2b-256 | 6f07b4b9f814319dde58fbf211303b943a5b6148717065abeb334019aabc837c |
File details
Details for the file psautohint-2.4.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 144.6 kB
- Tags: CPython 3.8, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 525e2a4fd513d979624424ffef5b864eb0018dddd9bf882bbc15e1e718b8e3b9 |
|
MD5 | 4ce45f04ee0feae14d3eed1016033cba |
|
BLAKE2b-256 | aa4331eb16f5fe9bc4a6e78ff69ec798b0811ffa8ec742d7a488e909035b1f5f |
File details
Details for the file psautohint-2.4.0-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 132.4 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f158b524d18355077cc21d8e74599d964db607cf81f987ac543ced94e0fcaede |
|
MD5 | 59159e1e99fcc86e9aa7ed8f18d92aae |
|
BLAKE2b-256 | 564a05b415aa11f747bc9d752827c13b02f3ac94d9ccc4663c54bc7ce42eb173 |
File details
Details for the file psautohint-2.4.0-cp38-cp38-macosx_10_9_universal2.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp38-cp38-macosx_10_9_universal2.whl
- Upload date:
- Size: 201.9 kB
- Tags: CPython 3.8, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8654252be853dba6253fef94ccaf6e57920c2cd0123efb68f7087f3d574ec4c |
|
MD5 | f8492c59e6a89ea0e1599de34fa2762f |
|
BLAKE2b-256 | e00944a7a128e3f54bbd776d5c320dd5a7c5a4dd1ac515fe08c347718017636f |
File details
Details for the file psautohint-2.4.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 135.9 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82d83c3a47ad10e9f9ac8d192625fcbfebad233d4420341d08ac5905f3c584c7 |
|
MD5 | 35d2a133176e7b91c42cef4d6988cd67 |
|
BLAKE2b-256 | ac75d1294c0075b96f5fd9ea41c1f6c5f1c973fca0cbdcd0fb7fa77d0dacf7a9 |
File details
Details for the file psautohint-2.4.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 144.6 kB
- Tags: CPython 3.7m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d3da45677a848cdf496318b749fc89def6f886e3d2c7b17025555edf4670289 |
|
MD5 | cc6598e9096a6fbab226295580e6b4a0 |
|
BLAKE2b-256 | 62adbb0092c767796a31323823486a5645b88a4e49362f0d1b5144c0b8bb976e |
File details
Details for the file psautohint-2.4.0-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: psautohint-2.4.0-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 132.3 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00dbee2a9b685424327d8687687ac9e52c0125e1cd3ef17264d979e232682a56 |
|
MD5 | 8b44e119035fed426fe204d346997a98 |
|
BLAKE2b-256 | dd7f8ebce23dbf45db182f6452357b135739e98a67321a8fa4d2f5dc655055a2 |