Skip to content

dudaxia/ttf2woff2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ttf字体转换成woff2

安装指南

  1. npm i
  2. npm i font-spider -g

使用

  1. 将ttf字体放入css文件夹;
  2. 将常用字体放入index.html;
  3. font-spider ./index.html;
  4. npm run ttf2woff2

font-spider: 字蛛是一个智能 WebFont 压缩工具,它能自动分析出页面使用的 WebFont 并进行按需压缩。 https://github.com/aui/font-spider/blob/master/README-ZH-CN.md http://font-spider.org/#source

ttf2woff: https://github.com/fontello/ttf2woff ttf2woff2: https://github.com/nfroidure/ttf2woff2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors