推荐学习书目
› 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 · 2602 views
    This topic created in 3682 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   ·   Privacy   ·   Solana   ·   2903 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:28 · PVG 18:28 · LAX 03:28 · JFK 06:28
    ♥ Do have faith in what you're doing.