Skip to content

Commit c421774

Browse files
authored
Merge pull request #29 from brunofin/issue/26-linux-installation
Linux installation instructions and script
2 parents cad4aa7 + 45c9887 commit c421774

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ There is also a script that automates the deletion of all Monaspace fonts from `
5151
$ cd util
5252
$ bash ./install_macos.sh
5353
```
54-
5554
You can also use [homebrew](https://brew.sh/) as an alternative:
5655

5756
```bash
@@ -62,6 +61,16 @@ brew install font-monaspace
6261
### Windows
6362
You can manually drag the fonts from the `fonts/otf` or `fonts/variable` directory into `C:\Windows\Fonts`. Alternatively, right-click the fonts you want and click Install.
6463

64+
### Linux
65+
You can manually drag the fonts from the `fonts/otf` and `fonts/variable` directory into `~/.local/share/fonts`.
66+
67+
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:
68+
69+
```bash
70+
$ cd util
71+
$ bash ./install_linux.sh
72+
```
73+
6574
### Webfonts
6675

6776
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 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 ~/.local/share/fonts
7+
cp ./fonts/otf/* ~/.local/share/fonts
8+
9+
# copy variable fonts from ./variable to ~/.local/share/fonts
10+
cp ./fonts/variable/* ~/.local/share/fonts
11+
12+
# Build font information caches
13+
fc-cache -f

0 commit comments

Comments
 (0)