跳转到主要内容

Adobe PostScript autohinter的Python包装器

项目描述

Test and Build Codecov PyPI Language grade: C/C++ Language grade: Python Total alerts

PSAutoHint

AFDKO(https://github.com/adobe-type-tools/afdko)自动hint的独立版本。

构建和运行

该存储库目前包含用C编写的核心autohinter、提供接口的Python C扩展和辅助Python代码。

要构建C扩展

python setup.py build

要全局安装C扩展和辅助脚本

pip install -r requirements.txt .

或者为当前用户安装它们

pip install -r requirements.txt --user .

可以通过运行以下命令使用autohinter

psautohint

仅构建autohintexe二进制文件

python setup.py build_exe

测试

我们有一个测试套件,可以用以下命令运行

pytest

调试

对于标准调试,用以下方式构建

python setup.py build --debug

还可以构建带有AddressSanitizer ("ASan")支持的调试版本(目前仅限Mac OS X),使用以下方法

python setup.py build --asan
pip install .

安装后,可以使用util/launch-asan.shshell脚本来启动一个Python进程,该进程调用调试所需的ASan库。将Xcode附加到启动的进程,然后在进程中执行代码,触发内存使用问题,然后等待ASan进行其魔术操作。

注意:请确保按照上述描述构建和安装psautohint;使用其他技术(如python setup.py install)会导致不带ASan和调试支持的重新构建,这不会工作。

项目详情


发布历史 发布通知 | RSS源

下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

psautohint-2.4.0.tar.gz (185.6 kB 查看哈希值)

上传时间

构建分布

psautohint-2.4.0-cp310-cp310-win_amd64.whl (135.9 kB 查看哈希值)

上传时间 CPython 3.10 Windows x86-64

psautohint-2.4.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (144.2 kB 查看哈希值)

上传时间 CPython 3.10 manylinux: glibc 2.12+ x86-64

psautohint-2.4.0-cp310-cp310-macosx_10_9_x86_64.whl (132.4 kB 查看哈希值)

上传时间 CPython 3.10 macOS 10.9+ x86-64

psautohint-2.4.0-cp310-cp310-macosx_10_9_universal2.whl (201.9 kB 查看哈希值)

上传时间 CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

psautohint-2.4.0-cp39-cp39-win_amd64.whl (135.9 kB 查看哈希值)

上传时间 CPython 3.9 Windows x86-64

psautohint-2.4.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (144.6 kB 查看哈希值)

上传时间 CPython 3.9 manylinux: glibc 2.5+ x86-64

psautohint-2.4.0-cp39-cp39-macosx_10_9_x86_64.whl (132.4 kB 查看哈希值)

上传时间 CPython 3.9 macOS 10.9+ x86-64

psautohint-2.4.0-cp39-cp39-macosx_10_9_universal2.whl (201.9 kB 查看哈希值)

上传时间 CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

psautohint-2.4.0-cp38-cp38-win_amd64.whl (135.9 kB 查看哈希值)

上传时间 CPython 3.8 Windows x86-64

psautohint-2.4.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (144.6 kB 查看哈希值)

上传时间 CPython 3.8 manylinux: glibc 2.5+ x86-64

psautohint-2.4.0-cp38-cp38-macosx_10_9_x86_64.whl (132.4 kB 查看哈希值)

上传时间 CPython 3.8 macOS 10.9+ x86-64

psautohint-2.4.0-cp38-cp38-macosx_10_9_universal2.whl (201.9 kB 查看哈希值)

上传时间 CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)

psautohint-2.4.0-cp37-cp37m-win_amd64.whl (135.9 kB 查看哈希值)

上传时间 CPython 3.7m Windows x86-64

psautohint-2.4.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (144.6 kB 查看哈希值)

上传时间 CPython 3.7m manylinux: glibc 2.5+ x86-64

psautohint-2.4.0-cp37-cp37m-macosx_10_9_x86_64.whl (132.3 kB 查看哈希值)

上传时间 CPython 3.7m macOS 10.9+ x86-64

由以下支持