You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-16Lines changed: 41 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,33 +42,58 @@ You must enable discretionary ligatures first, often using the `dlig` setting. S
42
42
43
43
## Desktop Installation
44
44
45
-
### MacOS
45
+
### Manually
46
+
47
+
#### MacOS
48
+
46
49
You can manually drag the fonts from the `fonts/otf` or `fonts/variable` directory into Font Book.
47
50
48
-
There is also a script that automates the deletion of all Monaspace fonts from `~/Library/Fonts` and then copies over the latest versions. Invoke it from the root of the repo like:
51
+
#### Windows
49
52
50
-
```bash
51
-
$ cd util
52
-
$ bash ./install_macos.sh
53
+
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.
54
+
55
+
#### Linux
56
+
57
+
You can manually drag the fonts from the `fonts/otf` and `fonts/variable` directory into `~/.local/share/fonts`.
58
+
59
+
### Make
60
+
61
+
For all OSes, use the provided [`Makefile`](Makefile) targets:
You can also use [homebrew](https://brew.sh/) as an alternative:
55
67
56
-
```bash
57
-
brew tap homebrew/cask-fonts
58
-
brew install font-monaspace
68
+
```sh
69
+
$ make uninstall
70
+
Fonts successfully uninstalled
59
71
```
60
72
61
-
### Windows
62
-
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.
73
+
#### Make Optional flags
63
74
64
-
### Linux
65
-
You can manually drag the fonts from the `fonts/otf` and `fonts/variable` directory into `~/.local/share/fonts`.
75
+
| name | description | default value |
76
+
|-|-|-|
77
+
| DEST_DIR | Base directory where the fonts should be installed. | Windows: `%WINDIR%/Fonts`<br>MacOS: `~/Library/Fonts`<br>Linux: `~/.local/share/fonts`|
78
+
| WRAP | Install the fonts in a subfolder named `Monaspace` within the `DEST_DIR`<br>`1` to enable, unset or any other value to disable it.| Enable by default for Linux which is the only one that supports it. |
79
+
80
+
**Examples:**
81
+
```sh
82
+
$ make install DEST_DIR=~/.fonts
83
+
```
84
+
```sh
85
+
$ make install WRAP=no
86
+
```
87
+
88
+
### Package managers
89
+
90
+
#### MacOS
66
91
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:
92
+
A [homebrew](https://brew.sh/) cask is available for MacOS:
0 commit comments