Gnome 3.28 发行说明称 Cantarell 字体已经进行了重大更新,但该字体并未预装在 Ubuntu 18.04 中,并且软件中心提供的版本多年来也没有更新。
那么有没有办法安装新的呢?
答案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/[email protected]#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