如何自动安装整个 Google Web 字体集合?

如何自动安装整个 Google Web 字体集合?

我基本上正在寻找一种无人值守的方式来部署/安装Google Web 字体收集到几个 Ubuntu 盒子中。我搜索过 PPA、软件包或用户脚本,但没有找到。

任何建议都将不胜感激。提前谢谢!

答案1

这篇文章中现有的答案已经过时并且不起作用(具体来说,远程 hg 存储库不再存在)。

新的说明可在此处查看:https://github.com/google/fonts

总之:

wget https://github.com/google/fonts/archive/master.zip
unzip master.zip

然后,如前所述:

sudo mkdir -p /usr/share/fonts/truetype/google-fonts/
find ./fonts-master/ -name "*.ttf" -exec sudo install -m644 {} /usr/share/fonts/truetype/google-fonts/ \; || return 1
fc-cache -f > /dev/null

答案2

相关内容