V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
nekocode
V2EX  ›  Python

fontmin 的 py 版本

  •  1
     
  •   nekocode ·
    nekocode · Aug 30, 2016 · 2368 views
    This topic created in 3528 days ago, the information mentioned may be changed or developed.

    大多数前端开发者应该对百度 EFE 前端团队开源的 fontmin 有所了解,这是一个字体子集化(删减无用字体图像)的 Node.js 工具,目前在 Github 上已经有 1700 多个 Star ,足可见其在前端工具集中具有一定的知名度。

    虽然 Python 中有大名顶顶进行字体文件处理的 Fonttools 库,但是并没有比较好的专门进行字符子集化 / 字符精简的库。于是乎 font-minify 应运而生。

    ./font-minify.py --text "汉体书写信息技术" test.ttf
    

    它目前开源并托管在 Github 上:https://github.com/nekocode/font-minify

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4465 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 01:01 · PVG 09:01 · LAX 18:01 · JFK 21:01
    ♥ Do have faith in what you're doing.