Ort*_*kni 6 arch-linux fonts lxde
我刚刚安装了 ArchLinux 和 LXDE,一切正常,但字体渲染不是最佳的。阅读有关字体配置的wiki并使用外部信息源,我构建了以下/etc/fonts/fonts.conf文件
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>
Run Code Online (Sandbox Code Playgroud)
我错过了什么?
我找到了解决方案:未创建 X 字体文件的索引。
我在查看/var/log/Xorg.0.log
日志文件时发现了这一点。
$ grep /fonts /var/log/Xorg.0.log.old
[ 13.492] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 13.493] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 13.493] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 13.493] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 13.494] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/
Run Code Online (Sandbox Code Playgroud)
然后我跑mkfontdir
的/usr/share/fonts/75dpi
和/usr/share/fonts/100dpi
那得到解决。
归档时间: |
|
查看次数: |
9045 次 |
最近记录: |