如何在 Linux 系统上安装最新的 Cascadia 字体

how to install latest Cascadia fonts for Linux

  1. 将各个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
  1. 使用wget下载字体文件:
1
wget -i /tmp/Cascadia/list -P /tmp/Cascadia
  1. 将字体复制到/usr/share/fonts
1
2
3
sudo mkdir /usr/share/fonts/Cascadia
sudo cp /tmp/Cascadia/*.ttf /usr/share/fonts/Cascadia
sudo chmod 755 /usr/share/fonts/Cascadia/*
  1. 然后重新生成字体缓存:
1
sudo fc-cache -f