Python wrapper for Adobe's PostScript autohinter
Project description
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
Built Distributions
File details
Details for the file psautohint-2.1.2a1.zip
.
File metadata
- Download URL: psautohint-2.1.2a1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74b1ef46d212bf5e0bb436b0dfb19d9ca38a1e70f8f58ec092c31ca747335ca5 |
|
MD5 | a5cffd94b5f10c69df4faeb600c29f3f |
|
BLAKE2b-256 | b81c92aa59234819d56f91fdc11fea84f8dfe7d20dc6f233f8430174d7353f96 |
File details
Details for the file psautohint-2.1.2a1-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: psautohint-2.1.2a1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 236.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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e06bc8f330a9b2427f66227e054481acf772e92fc75a12957682efa6bf5c7f6b |
|
MD5 | b3bd13d4726158ff4bf9daa8689ec132 |
|
BLAKE2b-256 | 4b69f914d748621357b40a6d18e32049a93e861d17a4abb7609b150f51838c7a |
File details
Details for the file psautohint-2.1.2a1-cp38-cp38-manylinux1_x86_64.whl
.
File metadata
- Download URL: psautohint-2.1.2a1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9199f18ea3b8f620df4162ab12a8accbaeb76926bc6ef3361ad54d7a532d94b1 |
|
MD5 | 1e3f402ba86404825e136ba046422c90 |
|
BLAKE2b-256 | 4e6cda731021e25b92d2a39a2546531a891e6581db684a057502680b6d8a4419 |
File details
Details for the file psautohint-2.1.2a1-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: psautohint-2.1.2a1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8b64e58bdfbdf3be245aa4847116973db416501df8e13bc8cedc1d0b55a8b92 |
|
MD5 | 50614c8018d89c1770e7aa4d1ac82c26 |
|
BLAKE2b-256 | f4ec32b0b94ff4c772296cf21bf07e46df7d2ccbaab4ffd539c172a8549f32c2 |
File details
Details for the file psautohint-2.1.2a1-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: psautohint-2.1.2a1-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 236.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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dfddfa849f4c81633a41e553bdd156093800272e46906484554d8bfac5dc8fb |
|
MD5 | a102a71035e95e94576f1a6c50750793 |
|
BLAKE2b-256 | fe6ffe2fd90e93dd22a683e338c12c33120ba12aebd49f4f99401bdd98ebc7f4 |
File details
Details for the file psautohint-2.1.2a1-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: psautohint-2.1.2a1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 651dce8e13fff7bc3e44f4b9914ffe180e8639d1a9926e9398bd1da5234b6033 |
|
MD5 | ec1ef9fc68743c050d2cbda4ebac2d31 |
|
BLAKE2b-256 | 67cac1c50155cd71af3ddfec09d734bf5b6ffca9ed7bd9b1652e2955a17a7975 |
File details
Details for the file psautohint-2.1.2a1-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: psautohint-2.1.2a1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e511e82e1fce82ae87b28fa4fe0b473cbec7e7d790a15a96157a8adbf0f7c34 |
|
MD5 | 3a1aa49ee691f9c470137a9eb137ca15 |
|
BLAKE2b-256 | 2b4ffb05c887cb0a0988dbe200fd36a56372dde8bebd6b216d46f4d57c0d52b5 |
File details
Details for the file psautohint-2.1.2a1-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: psautohint-2.1.2a1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae4dfae7a614de94e7c2e9ec7f8d03a416264cb68dd88c27af3282d0a196afb0 |
|
MD5 | 8ce239f1e57a5e55cb826670ef0b4e6c |
|
BLAKE2b-256 | 302bebf85741be8472cd27c53404f21f6bc3a9250710787e8dc05c64bf374bf5 |
File details
Details for the file psautohint-2.1.2a1-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: psautohint-2.1.2a1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d935d645b22a7f5d4d077dcefc2fd237f6c3da7c5c8687b909c04de4e90970b3 |
|
MD5 | 203f65aa25504a24b691ba5961d5b1a3 |
|
BLAKE2b-256 | b79df204b02e82e494cb1c7e77a7576819fcc58208320c3d6537eba9e13b255e |
File details
Details for the file psautohint-2.1.2a1-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: psautohint-2.1.2a1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4403fe4ed95524e037bb889358e6935d2d143ebd6bd79744a4a825d3f451ccb |
|
MD5 | a430cc34a7972e065be3cbfec356c428 |
|
BLAKE2b-256 | d8a9d7b6d63487c438b17f5c2bfef484274f99787663f3a350ef97b2d51b2797 |