1. 删除cairo、fontconfig、freetype2、libxft四个软件包:
sudo pacman -Rd cairo fontconfig freetype2 libxft
用ubuntu版的cairo、fontconfig、freetype2、libxft替换之,这四个软件的ARU链接为:
分别下载四个软件对应的PKGBUILD和相关文件,使用makepkg命令构建软件包,然后
sudo pacman -U ***.pkg.tar.gz
安装软件包
2. 下载雅黑字体,有两个文件myth.ttf和mythbd.ttf, 复制到/usr/share/fonts/vista,然后在该目录下执行:
sudo mkfontdir
sudo mkfontscale
并在 /etc/X11/xorg.conf 里加入一行:
FontPath “/usr/share/fonts/vista”
最后创建字体缓存 :
fc-cache -fv
3. 编辑/etc/fonts/local.conf文件,把全部内容替换为:
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!-- /etc/fonts/local.conf file to configure system-wide font access --> <fontconfig> <!-- Target dots per inch. Uncomment following block and change 96 to your LCD or CRT actual dpi --> <match target="pattern" > <edit name="dpi" mode="assign" > <double>90</double> </edit> </match> <!-- Enable LCD sub-pixel rendering. Pay attention, subpixel rendering is exploited only on LCD not CRT. Enable it will add some color fringing on the edge of font.It is not always a bad thing,please sit away from your screen further enough untill you can't observe the fringing. Some people's LCD subpixel layout that is not rgb order will get opposite result,t