Debian Codegraph @

sources/readme.md

raw
1 请运行 `build.bat` 或 `build.sh` 以生成字体。需要安装 [`fontmake`](https://github.com/googlefonts/fontmake):`pip3 install fontmake` 和 [`fontTools`](https://github.com/fonttools/fonttools):`pip3 install fonttools`。
2
3 目前源文件使用 [UFO 3 ZIP 格式(`.ufoz`)](https://unifiedfontobject.org/versions/ufo3/),碍于 `fontmake` 暂不支援 `.ufoz` 格式,因此运行 `extract_ufoz.py` 解压缩后使用其 `.ufo` 文件夹制作字体。
4
5 `fix_mono.py` 是特别用于调整等宽字符版本(Mono)的字符平均宽度 `xAvgCharWidth`,使其西文与汉字可以以 1:2 比例对应。
6
7
8
9 Please run `build.bat` or `build.sh` to build font. [`fontmake`](https://github.com/googlefonts/fontmake) (`pip3 install fontmake`) and [`fontTools`](https://github.com/fonttools/fonttools)(`pip3 install fonttools`) are required.
10
11 The source files are provided in [UFO 3 ZIP format (`.ufoz`)](https://unifiedfontobject.org/versions/ufo3/). As `fontmake` does not support `.ufoz` files yet, the script will run `extract_ufoz.py` to extract the `.ufo` folders before running `fontmake` on the `.ufo` folders to build the fonts.
12
13 `fix_mono.py` is used for fixing the `xAvgCharWidth` of monospaced fonts.
14