V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
superisaac
V2EX  ›  Python

写了个转换 fontawesome 字体到图标的小程序

  •  
  •   superisaac ·
    superisaac · 2014-10-06 20:00:55 +08:00 · 5231 次点击
    这是一个创建于 3461 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://github.com/superisaac/fa2icon

    屌丝app开发者再也不用为找美工画图标而烦恼了!
    11 条回复    2016-07-26 22:55:28 +08:00
    spance
        1
    spance  
       2014-10-06 20:04:33 +08:00
    人费那么大劲把图片做成矢量字,你又费半天劲给弄回去,你这是何苦啊?
    superisaac
        2
    superisaac  
    OP
       2014-10-06 20:13:32 +08:00
    @spance 因为fontawesome的图标好看,使用起来方便快捷
    alsacegustav
        3
    alsacegustav  
       2014-10-06 23:53:21 +08:00
    直接解个包放出来不更好:)
    belin520
        4
    belin520  
       2014-10-07 08:39:58 +08:00
    啥?
    意思是把 icon font 又转换回 png 吗?
    superisaac
        5
    superisaac  
    OP
       2014-10-07 08:56:17 +08:00
    @belin520 难道font是从png转换的?
    belin520
        6
    belin520  
       2014-10-07 09:02:07 +08:00
    @superisaac 好吧,我承认表达错误。
    jsonline
        7
    jsonline  
       2014-10-07 10:27:38 +08:00
    fontawesome 的 SVG 难道不能直接用吗?
    superisaac
        8
    superisaac  
    OP
       2014-10-07 11:28:32 +08:00
    @jsonline 不能直接用,折腾一下也勉强可以。不过比 [UIImage imageNamed:@"fa-cog"] 要麻烦多了。
    wildplant
        9
    wildplant  
       2014-10-07 18:36:43 +08:00
    直接提供个转换好的图库呗。。。
    superisaac
        10
    superisaac  
    OP
       2014-10-07 19:39:03 +08:00
    @wildplant 尺寸可以自己指定,文件名也可以自己指定。参见
    README.md
    leungwensen
        11
    leungwensen  
       2016-07-26 22:55:28 +08:00
    现在可以用到 SVG 版本的 font-awesome 了哦: http://leungwensen.github.io/svg-icon/#awesome PS ,不仅仅是 font-awesome ,这个项目把绝大部分流行的 iconfont 都转换成了 SVG sprite ,也提供单独的 SVG 文件,超过 4000 个图标开箱即用!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2901 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:29 · PVG 08:29 · LAX 17:29 · JFK 20:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.