當下軟件園 / 匯聚當下最新最酷的軟件下載站!
當下軟件園

您的位置: 首頁 > 應(yīng)用軟件 > 字體工具 > FontSpider(中文字體壓縮器) V3.0.8 官方版
FontSpider FontSpider(中文字體壓縮器) V3.0.8 官方版 版本

  FontSpider是一款中文字體壓縮器,讓網(wǎng)頁自由引入中文字體成為可能。字蛛通過分析本地 CSS 與 HTML 文件獲取 WebFont 中沒有使用的字符,并將這些字符數(shù)據(jù)從字體中刪除以實現(xiàn)壓縮,同時生成跨瀏覽器使用的格式。

FontSpider

【安裝說明】

  先安裝好 NodeJS,然后執(zhí)行:

  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. 開發(fā)階段請使用相對路徑的 CSS 與 WebFont

軟件特別說明

標簽: 字體壓縮器

其他版本下載
網(wǎng)友評論
回頂部 去下載

關(guān)于本站|下載幫助|下載聲明|軟件發(fā)布|聯(lián)系我們

Copyright ? 2005-2025 m.daaijiaoyu.cn.All rights reserved.

浙ICP備2024132706號-1 浙公網(wǎng)安備33038102330474號