一、使用font-spider
1.1、下載
官網:http://font-spider.org
項目地址:https://github.com/aui/font-spider
用法打開官網就有,和font-converter相比,自動化程度比較高,但是需要先安裝Node JS。
1.2、使用
官網有很詳細的教程,也有中文,大家可自行查看。
二、使用font-converter
2.1、下載地址
項目地址:https://github.com/Jijun/font-converter-gui
Linux下載:https://github.com/Jijun/font-converter-gui/releases/download/v1.0/font-converter.linux.amd64.tgz
MacOS下載:https://github.com/Jijun/font-converter-gui/releases/download/v1.0/font-converter-1.0.dmg
如果你正在使用Windows,那就用第一個,這個我也不知道怎麼編譯。
2.2、使用
Linux版本的用法是首先解壓,然後找到font-converter,並雙擊,進入如下界面
“TTF Directory”是你的TTF字體所在的目錄,不需要指定具體的字體文件。“Contain Chars”是要保留在字體文件中的字,你要保留啥字,你就在裏面輸入你要保留的字。“Output Format”就選TTF。
然後點擊“Start Converter”,就會開始壓縮,在你的字體目錄下就會多一個文件夾名字爲“ttf”(或者“woff”、“eot”)的目錄,裏面就包含了壓縮好的字體文件。