Ubuntu中文字体发虚问题

来源:互联网 发布:不用网络的手机游戏 编辑:程序博客网 时间:2024/05/18 00:15

Ubuntu中文字体发虚问题

说明:一、本文采用的中文字体为Windows平台的宋体(simsun.ttc);

二、以下配置文件从网上搜索而得,非本人原创,但原文采用的中文字体是圆体;

三、修改/etc/fonts/fonts.conf前请备份,否则造成的一切损失与本人无关;-)。

 

步骤:

1、用你喜欢的编辑器打开/etc/fonts/fonts.conf,将以下配置拷贝至/etc/fonts/fonts.conf结尾的</fontconfig>之前,保存后退出,等个几秒钟,或者注销下系统,应该就能看出效果了

2、如果还不好看,试下Gnome的开始-->系统-->首选项-->外观-->字体-->次像素平滑,再重起系统看看,还不行?我也没辙了,反正对我的系统效果很好(Ubuntu11.04+Gnome2.32.1)。



 

###==/etc/fonts/fonts.conf==================================================

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

<match target="font">
  <test name="family"><string>simsun</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>

 

###==END==================================================

原创粉丝点击