Skip to content

convert ttf to eot,convert ttf to woff,and convert ttf to svg

Notifications You must be signed in to change notification settings

chenfengyanyu/web-font-convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web-font-convert

convert ttf to eot,convert ttf to woff,and convert ttf to svg

项目构成

  • font
    • 需要转换格式的字体文件,如PingFang-Light.ttf
  • build
    • 运行index.js之后生成文件
  • build/compredd
    • 对svg字体文件进行优化后的输出目录
  • node_modules
  • index.js
  • package.json
  • README.md

运行

npm install
node index.js

目标

将ttf字体文件转换为woff,eot,svg等格式,因为svg转换后文件过大,因此优化后输出到compress目录中。

参考引用

web font终级解决方案

http://jartto.wang/2016/09/04/final-solution-of-the-web-font/

About

convert ttf to eot,convert ttf to woff,and convert ttf to svg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published