![Ubuntu 18.10 提供丑陋的字体](https://linux22.com/image/1205006/Ubuntu%2018.10%20%E6%8F%90%E4%BE%9B%E4%B8%91%E9%99%8B%E7%9A%84%E5%AD%97%E4%BD%93%20.png)
除了 Gnome 之外,几乎所有地方的字体都是模糊和丑陋的:google chrome、intellij idea 等。
Ubuntu 18.10 附带:
libcairo 1.15.12
libfreetype 2.8.1
fontconfig 2.13
fontconfig-config 2.13
我试过:
libfreetype 2.9.1
和最终的 fontconfig 包。
但上述措施均未能解决问题。
编辑
另外,我尝试了以下设置/etc/fonts/local.conf
:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!--
These are the true system defaults that will override ones from `gnome-tweaks`.
Unfortunately, `gnome-tweaks` does not provide all of these options in the UI. Without them "full" style hinting looks weird - doesn't seem to use BCI-hinting or attempts to enable both and ends up with a mess. Anyway, this fixes it.
-->
<match target="font">
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>
<!--
Italic variants look jagged without forcing the DPI. Default DPI of FreeType is 72. Verify with `fc-match` if in doubt.
-->
<edit name="dpi" mode="assign">
<int>96</int>
</edit>
</match>
<!-- This enables the autohinter for known-bad fonts without hinting instructions regardless of system defaults above -->
<include>60-group-non-tt-fonts.conf</include>
<!-- This marks known-good fonts with a tag -->
<include>61-group-tt-fonts.conf</include>
<!-- This ensures that known-good fonts will have the right options set regardless of system defaults above -->
<include>62-group-tt-rendering.conf</include>
</fontconfig>
但这只会加剧局势
更新
这是因为从 18.04 升级到 18.10。我刚刚在笔记本电脑上测试了全新安装的 18.10,字体没有问题。
我猜测这个问题与字体配置有关,升级时字体配置没有被新字体替换,或者某些地方发生冲突。
但是,这并不意味着字体完全没有问题。在我新安装的 18.10(笔记本电脑)上,Telegram 启动大约需要 2-3 分钟,因为它无法在特定位置找到所需的字体。