Skip to content

Commit

Permalink
update build process
Browse files Browse the repository at this point in the history
  • Loading branch information
awnion committed Jun 9, 2020
1 parent ad8ef76 commit 9a701ca
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,41 @@

# myfonts

### Key modifications


* Changed m i l % and others
* No italic and oblique versions included by default
* Changed font weights (e.g. "bold" has weight 500)

See iosevka/private-build-plans.toml for details

### Build && Install

```
./build.sh
./patch.sh
```

Instal on Mac
```
./install_mac.sh
# or
# cp -f -v build_dir/*.ttf ~/Library/Fonts/
```

vscode settings.json
```
...
"editor.fontFamily": "Iosevka Nerd Font",
"editor.fontWeight": "300",
"editor.fontSize": 17,
"editor.lineHeight": 22,
...
```

### Links

Build Iosevka font using docker
https://github.com/ejuarezg/containers/tree/master/iosevka_font#container-method
https://github.com/ryanoasis/nerd-fonts -- font patcher
6 changes: 4 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
set -e
set -v

(cd iosevka && docker build -t iosevka_build . -f Dockerfile)
(cd iosevka && docker build -t iosevka_build . -f Dockerfile)

rm -rf build_dir
mkdir -p build_dir

cp iosevka/private-build-plans.toml build_dir/private-build-plans.toml

docker run -it -v `pwd`/build_dir:/build iosevka_build ttf::iosevka-custom
docker run -it \
-v $(pwd)/build_dir:/build \
iosevka_build ttf::iosevka-custom
3 changes: 1 addition & 2 deletions install_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
set -e
set -v

# find ~/Library/Fonts/ -name 'iosevka-custom*' -delete
cp build_dir/dist/iosevka-custom/ttf/* ~/Library/Fonts/
cp -f -v build_dir/*.ttf ~/Library/Fonts/

0 comments on commit 9a701ca

Please sign in to comment.