当下软件园 / 汇聚当下最新最酷的软件下载站!
当下软件园
您的位置: 首页 > 应用软件 > 字体工具 > FontSpider(中文字体压缩器) V3.0.8 官方版
FontSpider FontSpider(中文字体压缩器) V3.0.8 官方版 版本
  • 软件大小:8.58M
  • 软件语言:简体中文
  • 软件类型:国产软件
  • 软件授权:免费软件
  • 更新时间:2019-07-03
  • 软件类别:字体工具
  • 软件官网:http://www.downxia.com
  • 应用平台:Win2003,WinXP,Vista,Win7,Win8

网友评分: 分数 5

软件非常好(100% 软件不好用(0%

  FontSpider是一款中文字体压缩器,让网页自由引入中文字体成为可能。字蛛通过分析本地 CSS 与 HTML 文件获取 WebFont 中没有使用的字符,并将这些字符数据从字体中删除以实现压缩,同时生成跨浏览器使用的格式。

FontSpider

【安装说明】

  先安装好 NodeJS,然后执行:

  npm install font-spider -g

  在 CSS 中使用 WebFont:

  /*声明 WebFont*/

  @font-face {

  font-family: 'pinghei';

  src: url('../font/pinghei.eot');

  src:

  url('../font/pinghei.eot?#font-spider') format('embedded-opentype'),

  url('../font/pinghei.woff') format('woff'),

  url('../font/pinghei.ttf') format('truetype'),

  url('../font/pinghei.svg') format('svg');

  font-weight: normal;

  font-style: normal;

  }

  /*使用选择器指定字体*/

  .home h1, .demo > .test {

  font-family: 'pinghei';

  }

  1. @font-face 中的 src 定义的 .ttf 文件必须存在,其余的格式将由工具自动生成

  2. 开发阶段请使用相对路径的 CSS 与 WebFont

软件特别说明

标签: 字体压缩器

其他版本下载
相关文章
网友评论
回顶部 去下载

关于本站|下载帮助|下载声明|软件发布|联系我们

Copyright © 2005-2024 www.downxia.com.All rights reserved.

浙ICP备06019006号-1 浙公网安备33038102330474号