如何在 Linux 系统上安装最新的 Cascadia 字体
how to install latest Cascadia fonts for Linux
- 将各个Cascadia字体链接保存至文件
list
:
1 | print "https://github.com/microsoft/cascadia-code/releases/latest/download/Cascadia.ttf\nhttps://github.com/microsoft/cascadia-code/releases/latest/download/CascadiaMono.ttf\nhttps://github.com/microsoft/cascadia-code/releases/latest/download/CascadiaMonoPL.ttf\nhttps://github.com/microsoft/cascadia-code/releases/latest/download/CascadiaPL.ttf" > /tmp/Cascadia/l |
- 使用
wget
下载字体文件:
1 | wget -i /tmp/Cascadia/list -P /tmp/Cascadia |
- 将字体复制到
/usr/share/fonts
:
1 | sudo mkdir /usr/share/fonts/Cascadia |
- 然后重新生成字体缓存:
1 | sudo fc-cache -f |