Ubuntu 安装 Google 字体


Google 字体以开源免费的形式发布, 以下是 Ubuntu 安装 Google 字体的步骤:

首先确认系统有安装 fontconfig 套件:

$ sudo dpkg -l | grep fontconfig

如果没有安装 fontconfig, 执行以下指令安装:

$ sudo apt-get install fontconfig

然后在使用者帐号的家目录建立 .fonts 目录:

$ mkdir ~/.fonts

将 Google 字体下载到 ~/.fonts 目录, 并将下载回来的压缩档解压:

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

重新整理系统字型快取:

$ fc-cache -fv

等字型快取建立完成后, Google 字体已经可以使用了。

Leave a Reply