如何在Ubuntu 18.04上安装Gnome 3.28中可用的新Cantarell字体?


3

Gnome 3.28发行说明说Cantarell字体已进行了重大更新,但Ubuntu 18.04中尚未预装此字体,并且软件中心中可用的版本多年未更新。

那么有没有办法安装新的呢?

Answers:


1

您可以从Cantarell github页面获取最新信息,并从源代码构建它:https : //github.com/madig/cantarell-fonts/releases

最新版本为2018年3月15日起的0.101。

构建和安装非常简单:

sudo apt install python3-pip meson ninja-build
pip3 install --user fontmake
pip3 install --user git+https://github.com/adobe-type-tools/psautohint.git@v1.1.0#egg=psautohint
meson build
cd build
sudo ninja install

结果:

Installing appstream/org.gnome.cantarell.metainfo.xml to /usr/local/share/metainfo/org.gnome.cantarell.metainfo.xml
Installing /home/valiano/cantarell-fonts-0.101/prebuilt/Cantarell-Thin.otf to /usr/local/share/fonts/cantarell
Installing /home/valiano/cantarell-fonts-0.101/prebuilt/Cantarell-Light.otf to /usr/local/share/fonts/cantarell
Installing /home/valiano/cantarell-fonts-0.101/prebuilt/Cantarell-Regular.otf to /usr/local/share/fonts/cantarell
Installing /home/valiano/cantarell-fonts-0.101/prebuilt/Cantarell-Bold.otf to /usr/local/share/fonts/cantarell
Installing /home/valiano/cantarell-fonts-0.101/prebuilt/Cantarell-ExtraBold.otf to /usr/local/share/fonts/cantarell
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.