Arch-Linux
如何在 ArchLinux/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>
我錯過了什麼?
我找到了解決方案: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/
然後我繼續執行
mkfontdir
並解決了。/usr/share/fonts/75dpi``/usr/share/fonts/100dpi