+ fonttools

Ryan L McIntyre 2018-03-17 16:05:42 -04:00
parent 0f923e61ee
commit c553b834bd

@ -77,6 +77,7 @@ todo
* FreeType
* Harfbuzz
* ttfautohint
* fonttools
### Build from source with Script from Hack Repo
@ -84,6 +85,7 @@ todo
- Cons: Not as much fine grained control
```sh
pip install fonttools
curl https://raw.githubusercontent.com/source-foundry/Hack/master/tools/scripts/install/ttfautohint-build.sh --output ~/ttfautohint-build.sh
chmod 770 ~/ttfautohint-build.sh
cd ~
@ -96,6 +98,12 @@ sudo ./ttfautohint-build.sh
- Pros: More control and better understanding of what is getting installed and setup
- Cons: more tedious
#### fonttools
```sh
pip install fonttools
```
#### Build FreeType from source
```sh
@ -158,6 +166,14 @@ ttfautohint 1.6
ttfautohint -l 4 -r 80 -G 350 -x 0 -H 181 -D latn -f latn -w G -W -t -X "" -I -m "bin/scripts/Hack/Hack-Regular-TA.txt" src/unpatched-fonts/Hack/Regular/Hack-Regular.ttf temp/Hack-Nerd-Font-autohinted.ttf
```
### We can run post build processing fixes on Hack
```sh
# cd into Nerd Fonts root directory
./font-patcher temp/Hack-Nerd-Font-autohinted.ttf
# spot check font, open in FontForge, etc.
```
## Troubleshooting
`ttfautohint: unrecognized option '-H'`