如何维护SVG文件的图标字体 [英] How to maintain an icon font from SVG files

查看:227
本文介绍了如何维护SVG文件的图标字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个图标字体(和相关的CSS代码)的图标字体包。然而,我们需要添加更多的图标,或者编辑一些当前的图标。

现在的问题是:如何在没有昂贵的字体设计软件的情况下做到这一点?我们已经为Mac购买了 Glyph Mini ,但如果您有免费的服务可以去那里,上传你的SVG文件,并得到一个新的字体文件。这样你就可以拥有一个充满SVG文件的目录,当你编辑或者添加一些东西时,你可以编译你自己的字体。如果有这样的编译器,我们可以从命令行使用它会更好。然而,我还没有看到这样的工具。



任何人都知道这个问题整洁的免费解决方案?

解决方案

我建议您使用gulp-iconfont甚至svgicons2svgfont / svg2ttf / ttf2eot / ttf2woff / ttf2woff2纯CLI工具链,请参阅 https://github.com/nfroidure/svgiconfont/blob/master/package.json#L7


We have an icon font (and relevant CSS code) for an icon font pack. However we need to add more icons to the pack or edit some of the current ones.

The question is: how can we do it without having an expensive font-design software? We've bought Glyph Mini for Mac but it would be great if there was a free service that you could just go there, upload your SVG files and get a new font file. That way you could have a directory full of SVG files and when you edit or add something, you can "compile" your own font. It would be even better if there was such compiler that we could use from command line. However, I haven't seen such tools.

Anyone aware of neat free solutions to this problem?

解决方案

I'd suggest you to use gulp-iconfont or even svgicons2svgfont/svg2ttf/ttf2eot/ttf2woff/ttf2woff2 for pure CLI toolchain, see https://github.com/nfroidure/svgiconfont/blob/master/package.json#L7.

这篇关于如何维护SVG文件的图标字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆