icomoon用法

官网:

https://icomoon.io/app/

1.点import批量选择*.svg文件并上传,

上传过程中有可能会出现icomoon会忽略掉Stroke的提示,解决办法在这里: https://icomoon.io/#docs/stroke-to-fill

一共列出了三款软件Illustrator, lnk Scape

2. 选中要转换的svg图标,点页面底部的generate按钮

3.点页面底部的download按钮。下载一个zip包

4. 解压zip包可以看到生成的fonts文件以及demo.html包含各个图标的使用方法。


解决方法

Conversting Strokes to Fills

The current version of the IcoMoon app ignores strokes. But you can convert strokes to fills in different vector editing programs:

Adobe Illustrator

Select the shapes that you want to convert and then choose Object → Expand. You might need to choose Object → Expand Appearance before you can apply Object → Expand.

Ink Scape

Select the shapes that you want to convert and then choose Path → Stroke to Path.

Sketch

Select the shapes that you want to convert and choose Layer → Paths → Vectorise Stroke

正在下载Ink Scape(开源免费) 。待补充。

你可能感兴趣的:(svg,iconmoon)