Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第416天 svg如何转为字体图标? #2468

Open
haizhilin2013 opened this issue Jun 4, 2020 · 2 comments
Open

[html] 第416天 svg如何转为字体图标? #2468

haizhilin2013 opened this issue Jun 4, 2020 · 2 comments
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第416天 svg如何转为字体图标?

3+1官网

我也要出题

@haizhilin2013 haizhilin2013 added the html html label Jun 4, 2020
@OriX0
Copy link

OriX0 commented Jul 3, 2020

  1. 选择一个支持在线转换的网站 如IconFonticomoon
  2. 上传svg文件的图标
  3. 在相应的地方进行下载
好处
  1. 字体图标直接用color自由控制颜色;
  2. 整合在一起,减少http请求等

@forwardhuan
Copy link

使用nodeJS的依赖包: svg2ttf

npm install -g svg2ttf
svg2ttf fontello.svg fontello.ttf

具体使用链接: https://blog.csdn.net/forward_huan/article/details/107416360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

3 participants