├── LICENSE ├── MiNiKaTongJian.ttf ├── README.md ├── index.html ├── sfnttool.jar ├── sub.eot └── sub.ttf /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Ni Guandong 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /MiNiKaTongJian.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ngdly/sfnttool/04067f4ee317f5074cdd43876265d37630675553/MiNiKaTongJian.ttf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 在TTF字体中提取想要的文字,让字体文件变迷你 2 | 3 | http://download.csdn.net/detail/ldpjay/8822587 4 | 5 | 【使用】 6 | 1. 确保你的电脑已经安装了Java环境(能运行Java命令),这是必须的。 7 | 8 | 2. 命令行进入到sfnttool所在目录下。(一个小技巧,在当前文件夹里按住Shift再右键,里面有个“在此处打开命令行”。) 9 | 10 | 3. 输入下面的命令即可: 11 | 12 | ``` 13 | java -jar sfnttool.jar -s '这是一段测试文字' msyh.ttf msyh_simplify.ttf 14 | ``` 15 | 16 | sfnttool.jar说明如下: 17 | 18 | ``` 19 | java -jar sfnttool.jar -h 20 | subset [-?|-h|-help] [-b] [-s string] fontfile outfile 21 | prototype font subsetter 22 | -?,-help print this help information 23 | -s,-string string to subset 24 | -b,-bench benchmark (run 10000 iterations) 25 | -h,-hints strip hints 26 | -w,-woff output woff format 27 | -e,-eot output eot format 28 | -x,-mtx enable microtype express compression for eot format 29 | ``` 30 | 31 | 4. 输出字体在同目录下。 32 | 33 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |