Moved all scripts to script/*, updated build instructions

This commit is contained in:
Nikita Prokopov 2019-05-21 17:21:07 +03:00
parent c0ad8d1c20
commit cb70fe2de4
6 changed files with 36 additions and 18 deletions

View File

@ -182,24 +182,20 @@ Other monospaced fonts with ligatures:
- [Iosevka](https://be5invis.github.io/Iosevka/) (free)
- [DejaVu Sans Code](https://github.com/SSNikolaevich/DejaVuSansCode) (free)
### Building
### Building Fira Code locally
On macOS:
In case you want to alter FiraCode.glyphs and build OTF/TTF/WOFF files yourself, this is setup I use on macOS:
```bash
# install all required build tools
script/bootstrap
# build the font files
script/build
# install OTFs to ~/Library/Fonts
script/install
```
sudo easy_install pip
pip install virtualenv --user
python -m virtualenv venv
source venv/bin/activate
pip install gftools
pip install fontmake
brew install ttfautohint
brew install woff2
brew tap bramstein/webfonttools
brew install sfnt2woff-zopfli
```
Run `./build.sh`
### Credits

View File

@ -1 +1 @@
../../build.sh
../../script/build

19
script/bootstrap Executable file
View File

@ -0,0 +1,19 @@
#! /bin/bash -ex
sudo easy_install pip
pip3 install virtualenv --user
python3 -m virtualenv venv
source venv/bin/activate
# https://github.com/googlefonts/gftools/issues/121
brew install pkg-config
pip3 install -U Pillow==5.4.1 idna==2.8 requests==2.21.0 urllib3==1.24.1
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
pip3 install pycairo
pip3 install git+https://github.com/googlefonts/gftools
pip3 install fontmake
brew install ttfautohint
brew install woff2
brew tap bramstein/webfonttools
brew install sfnt2woff-zopfli

View File

@ -1,5 +1,5 @@
#!/bin/bash
set -e
#!/bin/bash -ex
source venv/bin/activate
# ============================================================================

3
script/install Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash -ex
cp distr/otf/*.otf ~/Library/Fonts