https://github.com/thisisgame/minifont
generate mininal ttf font file.
https://github.com/thisisgame/minifont
Last synced: 3 months ago
JSON representation
generate mininal ttf font file.
- Host: GitHub
- URL: https://github.com/thisisgame/minifont
- Owner: ThisisGame
- License: apache-2.0
- Created: 2017-03-17T12:30:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T09:17:49.000Z (over 8 years ago)
- Last Synced: 2025-12-29T14:37:48.043Z (7 months ago)
- Language: Java
- Size: 10 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# MiniFont
generate mininal ttf font file.
# Code By Google
MiniFont is Changed From sfntly,sfntly is a font editor tool code by google.
sfntly can use to generator mininal ttf font file,use like
```
java -jar sfnttool.jar -s "中国造" MicrosoftHeiti.ttf msyh_simplify11.ttf
```
but cannot load data from txt file,so i make some change.
# build
Clone this repository,then use ant to build.

you can find it in
```
dist\tools\sfnttool\sfnttool.jar
```
# usage
```
java -jar sfnttool.jar -s "中国造" MicrosoftHeiti.ttf msyh_simplify11.ttf
java -jar sfnttool.jar -s "1.txt" MicrosoftHeiti.ttf msyh_simplify11.ttf
```

# notices
ant1.10 need java1.8, if you pc run java1.7,choose ant 1.09
ant need tools.jar,you need copy from C:\Program Files\Java\jdk1.7.0_80\lib to C:\Program Files\Java\jre7\lib
如果是中文,txt要设置对应编码
