精简TTF字体包
转载自:http://blog.csdn.net/ldpjay/article/details/46561031
TTF字体包过大,只提取项目中需要的一千多字
命令:
java -jar sfnttool.jar -s '这是一段测试文字' msyh.ttf msyh_simplify.ttf
sfnttool.jar说明如下:
java -jar sfnttool.jar -h
subset [-?|-h|-help] [-b] [-s string] fontfile outfile
prototype font subsetter
-?,-help print this help information
-s,-string string to subset
-b,-bench benchmark (run 10000 iterations)
-h,-hints strip hints
-w,-woff output woff format
-e,-eot output eot format
-x,-mtx enable microtype express compression for eot format
4. 输出字体在同目录下。
【链接】
>> 谷歌sfntly开源项目:
https://code.google.com/p/sfntly/
>> 中文字体其实也可以用在网页上的:
http://hxgdzyuyi.github.io/blog/chinese-subset.html
>> cjk-subsetter项目: