mirror of
https://github.com/tonsky/FiraCode.git
synced 2024-10-04 00:31:49 +03:00
Moved all scripts to script/*, updated build instructions
This commit is contained in:
parent
c0ad8d1c20
commit
cb70fe2de4
26
README.md
26
README.md
@ -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
|
||||
|
||||
|
@ -1 +1 @@
|
||||
../../build.sh
|
||||
../../script/build
|
19
script/bootstrap
Executable file
19
script/bootstrap
Executable 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
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
#!/bin/bash -ex
|
||||
|
||||
source venv/bin/activate
|
||||
|
||||
# ============================================================================
|
3
script/install
Executable file
3
script/install
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash -ex
|
||||
|
||||
cp distr/otf/*.otf ~/Library/Fonts
|
Loading…
Reference in New Issue
Block a user