Skip to content

Commit 29880d5

Browse files
committed
#26 Linux installation instructions and script
1 parent 421b5a8 commit 29880d5

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ There is also a script which automates the deletion of all Monaspace fonts from
5151
$ bash ./util/install_macos.sh
5252
```
5353

54+
### Linux
55+
You can manually drag the fonts from the `fonts/otf` and `fonts/variable` directory into `~/.local/share/fonts`.
56+
57+
There is also a script which automates the deletion of all Monaspace fonts from `~/.local/share/fonts` and then copies over the latest versions. Invoke it from the root of the repo like:
58+
59+
```bash
60+
$ ./util/install_linux.sh
61+
```
62+
5463
### Webfonts
5564

5665
All files with a `.woff` or `.woff2` suffix are intended for use on the web. You do not install them with your operating system, but rather add them to your web development project.

util/install_linux.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# remove all fonts from ~/.local/share/fonts that start with "Monaspace"
4+
rm -rf ~/.local/share/fonts/Monaspace*
5+
6+
# copy all fonts from ./otf to ~/Library/Fonts
7+
cp ./fonts/otf/* ~/.local/share/fonts
8+
9+
# copy variable fonts from ./variable to ~/Library/Fonts
10+
cp ./fonts/variable/* ~/.local/share/fonts
11+
12+
# Build font information caches
13+
fc-cache -f

0 commit comments

Comments
 (0)