# 在Ubuntu系统安装Monaspace字体
在Ubuntu系统安装Google新开源的Monaspace字体
#!/bin/bash
# if the folder does not exist, create the folder
mkdir -p $HOME/.local/share/fonts/monaspace
# remove all fonts from ~/.local/share/fonts that start with "Monaspace"
mv $HOME/.local/share/fonts/monaspace/Monaspace* /tmp/
# copy all fonts from ./otf to ~/.local/share/fonts
cp $HOME/monaspace/fonts/otf/* $HOME/.local/share/fonts/monaspace
# copy variable fonts from ./variable to ~/.local/share/fonts
cp $HOME/monaspace/fonts/variable/* $HOME/.local/share/fonts/monaspace
# Build font information caches
fc-cache -f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16