首页 > 其他 > 详细

字体压缩 - 字蛛 font-spider

时间:2020-04-06 13:33:19      阅读:69      评论:0      收藏:0      [点我收藏+]

个人博客:柚子青年。

原文链接:字体压缩 - 字蛛 font-spider

安装 font-spider
npm install font-spider

index.html

<div class="content">0123456789</div>

index.css

@font-face {
font-family: ‘DINAlternateBold‘;
src: url(‘./font/DIN-Alternate-Bold.ttf‘)
}
.content {
font-family: DINAlternateBold;
}
执行命令
font-spider index.html // html 路径

注:执行后会生成一个新的字体包,只有在html内的文字才会在字体包内,适用于数字英文特殊字体处理

字体压缩 - 字蛛 font-spider

原文:https://www.cnblogs.com/webff/p/12641504.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!