diff --git a/README.md b/README.md index 8723723..c5dbf11 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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. diff --git a/util/install_linux.sh b/util/install_linux.sh new file mode 100755 index 0000000..be4569d --- /dev/null +++ b/util/install_linux.sh @@ -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