-
Notifications
You must be signed in to change notification settings - Fork 0
/
iosevka_custom.sh
executable file
·50 lines (42 loc) · 1.04 KB
/
iosevka_custom.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
# Installs requirements and builds my preferences for Iosevka
#
# Homepage: https://github.com/be5invis/Iosevka
#
# Requirements:
# - nodejs (≥ 6.0)
# - ttfautohint
# - otfcc (≥ 0.7.0)
set -e
WDIR="$HOME/Projects/Iosevka"
# OS Check
if [ ! "$(uname)" == "Darwin" ]; then
echo "Error: Not on Mac"
exit 1
fi
# Working directory check
cd $WDIR || exit 1
# Install otfcc and ttfautohint
brew tap caryll/homebrew-tap
brew install caryll/tap/otfcc-mac64 ttfautohint
# Install Iosevka requirements
npm install
# Create my custom configuration
# ==============================
# - low asterisk
# - low underscore
# - single-story g
# - m with shorter middle leg
# - no ligations (term)
#
# The following defaults don't need to be specified:
# - fira @ (default)
# - curly braces (default)
# - slashed zero (default)
# - high tilde (default)
make custom-config design=\
'v-asterisk-low v-underscore-low v-g-singlestorey v-m-shortleg term'
# Build from source
make custom
# Installation instructions
echo "Done! Go look in $WDIR/dist/"