8000 GitHub - dhjz/fontmin: 字体压缩转换工具, fontmin, 支持将tff字体格式转换成woff, svg, eot, ttf, css, woff2, 且支持压缩常见汉字2000个或者7000个或者指定文字
[go: up one dir, main page]

Skip to content
/ fontmin Public

字体压缩转换工具, fontmin, 支持将tff字体格式转换成woff, svg, eot, ttf, css, woff2, 且支持压缩常见汉字2000个或者7000个或者指定文字

Notifications You must be signed in to change notification settings

dhjz/fontmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

前端字体压缩转换工具

依赖

  • fontmin@2.0.0 ( Node v16+ )

安装依赖

npm install

使用方法

  1. 字体复制到fonts目录
  2. 执行 node index.js 转换常见2000汉字
  3. 执行 node index.js --type=3000 转换常见3000汉字
  4. 执行 node index.js --type=7000 转换常见7000汉字
  5. 生成字体文件在build目录

支持格式

  • 源格式: ttf
  • 目标格式: woff, svg, eot, ttf, css, woff2

About

字体压缩转换工具, fontmin, 支持将tff字体格式转换成woff, svg, eot, ttf, css, woff2, 且支持压缩常见汉字2000个或者7000个或者指定文字

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0