This Project is developed on GameBuildingBlocks/FontPruner.
- Use argparse to parse arguments, instead of docopt.
- Some grammatical changes from python2 to python3.
-
Install python3 and jre(java runtime environment).
-
Modify
src/FontExtract/unChineseOutPut.txt
, which should contain the characters you want to keep in the new ttf file.(The original
unChineseOutPut.txt
contains common symbols and 7613 general Chinese characters.) -
Execute
python3 ./FontPruner.py [--inputPath INPUTPATH] [--inputFont INPUTFONT] [--tempPath TEMPPATH]
For example,
python FontPruner.py --inputPath=./ --inputFont=./XHei-Intel.ttf --tempPath=./
The output ttf file will be generated in
output/