Ubuntu 18.04 LTS 字体显示不正常

4
在Ubuntu 18.04 LTS上安装Brackets后,我发现字体无法正确渲染。我尝试了所有与字体有关的解决方案,但没有成功。这是我的屏幕截图:https://ibb.co/b7393n,Brackets版本为:https://ibb.co/ndUow7。字体设置如下:字体:Ubuntu,字体大小:14。谢谢。
2个回答

3
问题出在freetype 2.8.1版本中的一个bug。 我找到的解决方案是从源代码构建lib。 从https://download.savannah.gnu.org/releases/freetype/freetype-2.9.1.tar.gz获取它。 然后:
tar xvfz freetype-2.9.1.tar.gz
cd freetype-2.9.1
sudo apt build-dep libfreetype6
./configure
make
sudo make install
sudo ldconfig

然后重新启动。问题应该会消失。

1
sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main"
sudo apt-get update
sudo apt-get install libfreetype6=2.8-0.2ubuntu2.1
sudo apt-mark hold libfreetype6

在终端中输入此命令,这对我很有帮助,我也遇到了同样的问题。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接