ubuntu 5.04下中文粗体的实现

重新找回粗体

按照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>

This entry was posted in Linux and tagged , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please copy the string fwHoql to the field below:

以新浪微博帐号登录