kopia lustrzana https://github.com/tonsky/FiraCode
Moved all scripts to script/*, updated build instructions
rodzic
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)
|
- [Iosevka](https://be5invis.github.io/Iosevka/) (free)
|
||||||
- [DejaVu Sans Code](https://github.com/SSNikolaevich/DejaVuSansCode) (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
|
### Credits
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
../../build.sh
|
../../script/build
|
|
@ -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
|
#!/bin/bash -ex
|
||||||
set -e
|
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash -ex
|
||||||
|
|
||||||
|
cp distr/otf/*.otf ~/Library/Fonts
|
Ładowanie…
Reference in New Issue