Skip to content

Commit

Permalink
Merge pull request githubnext#29 from brunofin/issue/26-linux-install…
Browse files Browse the repository at this point in the history
…ation

Linux installation instructions and script
  • Loading branch information
idan authored Nov 11, 2023
2 parents cad4aa7 + 45c9887 commit c421774
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ There is also a script that automates the deletion of all Monaspace fonts from `
$ cd util
$ bash ./install_macos.sh
```

You can also use [homebrew](https://brew.sh/) as an alternative:

```bash
Expand All @@ -62,6 +61,16 @@ brew install font-monaspace
### Windows
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.

### Linux
You can manually drag the fonts from the `fonts/otf` and `fonts/variable` directory into `~/.local/share/fonts`.

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:

```bash
$ cd util
$ bash ./install_linux.sh
```

### Webfonts

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.
Expand Down
13 changes: 13 additions & 0 deletions util/install_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# remove all fonts from ~/.local/share/fonts that start with "Monaspace"
rm -rf ~/.local/share/fonts/Monaspace*

# copy all fonts from ./otf to ~/.local/share/fonts
cp ./fonts/otf/* ~/.local/share/fonts

# copy variable fonts from ./variable to ~/.local/share/fonts
cp ./fonts/variable/* ~/.local/share/fonts

# Build font information caches
fc-cache -f

0 comments on commit c421774

Please sign in to comment.