重新找回粗体

按照UBUNTU的方法进行中文字体的优化后,就失去了粗体。

在linuxsky下载的字体拷贝到/usr/share/fonts/truetype/目录,
运行sudo fc-cache -f
修改fons.conf文件:
sudu gedit /etc/fonts/fonts.conf
在相应的simsun字体前面加入一行:

<family>Vera Sans YuanTi</family>
同时,可把前面的
<family>Tahoma</family>中的字体改为其他的英文字体或者注释掉。
最后,在加入:

<match target="font">
<test name="family"><string>Vera Sans YuanTi</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>

<match target="font">
<test name="family"><string>Vera Sans YuanTi Mono</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>

<match target="font">
<edit name="antialias"><bool>true</bool></edit>
<edit name="hinting"><bool>false</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
</match>

<match target="font">
<test name="pixelsize" compare="more_eq"><double>12</double></test>
<test name="pixelsize" compare="less_eq"><double>16</double></test>
<edit name="antialias"><bool>false</bool></edit>
<edit name="hinting"><bool>true</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
</match>