githubnext / monaspace

An innovative superfamily of fonts for code
https://monaspace.githubnext.com
SIL Open Font License 1.1
13.23k stars 215 forks source link

Linux installation instructions and script #26

Closed brunofin closed 8 months ago

brunofin commented 8 months ago

Add a script and instruction for Linux installation similar to the ones provided for MacOS

jfmcbrayer commented 8 months ago

Installation instructions look correct. Do you know how or if it's possible to specify the ligature and texture healing options in a Pango font string?

eliheuer commented 8 months ago

The MacOS install script is very simple, can be ported to work with linux like just by replacing the font directory, like so:

#!/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 ~/Library/Fonts
cp ./fonts/variable/* ~/. local/share/fonts