From 29880d58671f6d1e28370d27dca04364cb8b48e7 Mon Sep 17 00:00:00 2001 From: Bruno Finger Date: Fri, 10 Nov 2023 09:46:45 +0100 Subject: [PATCH 1/2] #26 Linux installation instructions and script --- README.md | 9 +++++++++ util/install_linux.sh | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 util/install_linux.sh diff --git a/README.md b/README.md index 4e54162..28a2904 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,15 @@ There is also a script which automates the deletion of all Monaspace fonts from $ bash ./util/install_macos.sh ``` +### 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 +$ ./util/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 rather 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..04bb641 --- /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 ~/Library/Fonts +cp ./fonts/otf/* ~/.local/share/fonts + +# copy variable fonts from ./variable to ~/Library/Fonts +cp ./fonts/variable/* ~/.local/share/fonts + +# Build font information caches +fc-cache -f From 52fbda2ed6a8b647007a2243dbf25d99729fb0cd Mon Sep 17 00:00:00 2001 From: Bruno Finger Date: Fri, 10 Nov 2023 09:57:07 +0100 Subject: [PATCH 2/2] #26 Properly refer to ~/.local/share/fonts in comments --- util/install_linux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/install_linux.sh b/util/install_linux.sh index 04bb641..be4569d 100755 --- a/util/install_linux.sh +++ b/util/install_linux.sh @@ -3,10 +3,10 @@ # remove all fonts from ~/.local/share/fonts that start with "Monaspace" rm -rf ~/.local/share/fonts/Monaspace* -# copy all fonts from ./otf to ~/Library/Fonts +# copy all fonts from ./otf to ~/.local/share/fonts cp ./fonts/otf/* ~/.local/share/fonts -# copy variable fonts from ./variable to ~/Library/Fonts +# copy variable fonts from ./variable to ~/.local/share/fonts cp ./fonts/variable/* ~/.local/share/fonts # Build font information caches