![Test and Build](https://github.com/adobe-type-tools/psautohint/workflows/Test%20and%20Build/badge.svg)
[![Codecov](https://codecov.io/gh/adobe-type-tools/psautohint/branch/master/graph/badge.svg)](https://codecov.io/gh/adobe-type-tools/psautohint)
[![PyPI](https://img.shields.io/pypi/v/psautohint.svg)](https://pypi.org/project/psautohint)
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/adobe-type-tools/psautohint.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/adobe-type-tools/psautohint/context:cpp)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/adobe-type-tools/psautohint.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/adobe-type-tools/psautohint/context:python)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/adobe-type-tools/psautohint.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/adobe-type-tools/psautohint/alerts/)
PSAutoHint
==========
A standalone version of [AFDKO](https://github.com/adobe-type-tools/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](https://github.com/google/sanitizers/wiki/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.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共130个文件
c:30个
py:19个
bez:12个
资源分类:Python库 所属语言:Python 资源全名:psautohint-2.4.0a3.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
Python库 | psautohint-2.4.0a3.tar.gz (130个子文件)
bad_base_token 118B
bad_begin 234B
bad_end_fddict 260B
bad_end_glyphset 461B
bad_fddict_key 267B
base_token_list 104B
circle.bez 158B
circle2.bez 150B
circle2.bez 129B
circle.bez 127B
square.bez 75B
square2.bez 73B
triangle.bez 67B
square.bez 56B
square2.bez 55B
triangle.bez 48B
.notdef.bez 13B
.notdef.bez 13B
bluefuzz_fontname 651B
meson.build 2KB
charpath.c 56KB
gen.c 33KB
auto.c 28KB
control.c 26KB
merge.c 17KB
eval.c 17KB
check.c 16KB
autohintexe.c 16KB
fontinfo.c 15KB
read.c 13KB
pick.c 12KB
flat.c 11KB
_psautohint.c 11KB
write.c 11KB
report.c 10KB
bbox.c 9KB
misc.c 8KB
head.c 7KB
psautohint.c 6KB
shuffle.c 6KB
ac.c 5KB
fix.c 4KB
charprop.c 3KB
charpathpriv.c 3KB
buffer.c 2KB
optable.c 2KB
memory.c 2KB
logging.c 1KB
stemreport.c 1KB
acfixed.c 611B
setup.cfg 192B
.clang-format 3KB
COPYING 615B
.coveragerc 818B
finalfont 260B
fontinfo 184B
fontinfo 184B
.gitignore 251B
.gitmodules 139B
circle2.glif 632B
circle.glif 627B
square.glif 326B
square2.glif 325B
triangle.glif 286B
_notdef.glif 132B
ac.h 14KB
opcodes.h 6KB
psautohint.h 5KB
charpath.h 1KB
basic.h 1010B
fontinfo.h 885B
logging.h 876B
bbox.h 732B
memory.h 577B
optable.h 454B
version.h 124B
MANIFEST.in 96B
version.h.in 76B
pytest.ini 94B
LICENSE 11KB
AC.md 8KB
NEWS.md 4KB
README.md 2KB
bezformat.md 2KB
no_dominant_h_v 228B
not-zip-safe 1B
basic_shapes.otf 1KB
basic_shapes.otf 1KB
project.pbxproj 23KB
project.pbxproj 11KB
PKG-INFO 3KB
PKG-INFO 3KB
fontinfo.plist 5KB
contents.plist 532B
lib.plist 435B
metainfo.plist 309B
otfFont.py 56KB
ufoFont.py 47KB
__main__.py 32KB
autohint.py 31KB
共 130 条
- 1
- 2
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功