Skip to content

Commit

Permalink
Moved all scripts to script/*, updated build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsky committed May 21, 2019
1 parent c0ad8d1 commit cb70fe2
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 18 deletions.
26 changes: 11 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
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
```
```bash
# install all required build tools
script/bootstrap

Run `./build.sh`
# build the font files
script/build

# install OTFs to ~/Library/Fonts
script/install
```

### Credits

Expand Down
2 changes: 1 addition & 1 deletion googlefonts-qa/scripts/build.sh
19 changes: 19 additions & 0 deletions script/bootstrap
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions build.sh → script/build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
#!/bin/bash -ex

source venv/bin/activate

# ============================================================================
Expand Down
3 changes: 3 additions & 0 deletions script/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash -ex

cp distr/otf/*.otf ~/Library/Fonts
File renamed without changes.

0 comments on commit cb70fe2

Please sign in to comment.