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

Nan*_*ada 13 installation scripts fonts google

我基本上是在寻找一种无人值守的方式来将Google Web 字体集合部署/安装到几个 Ubuntu 盒子中。我已经搜索过 PPA、包或用户脚本,但运气不佳。

任何建议将不胜感激。非常感谢!

小智 11

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

此处提供新说明:https : //github.com/google/fonts

总之:

wget https://github.com/google/fonts/archive/master.zip
unzip master.zip
Run Code Online (Sandbox Code Playgroud)

然后,如前所述:

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
Run Code Online (Sandbox Code Playgroud)