15 lines
256 B
Markdown
15 lines
256 B
Markdown
|
||
- 安装
|
||
|
||
```bash
|
||
npm install fontmin -g
|
||
```
|
||
|
||
- 创建一个文本文件(如 text.txt),包含项目中实际使用的字符。
|
||
|
||
- 运行
|
||
|
||
```bash
|
||
fontmin path/to/source-font.ttf --text-file=path/to/text.txt --output-file=path/to/output-font.ttf
|
||
```
|