|
为什么我的字体这么难看?
为什么设置了windows下的字体(大多是SimSun)后汉字仍然发虚?
看了几篇关于Debian下关于XFree86字体设置的贴子,感觉知识太旧了,自己在网上查了几天,终于解决了字体设置的问题。
详细请参:http://www.higherorder.org/wiki/Fontconfig (感谢把好东西写出来与大家共享)
作者写的很详细了,我就不添足了。
这里补充一下安装SimSun字体后,汉字仍然发虚的问题:
在你的主目录中建立.fonts.conf文件,写入下面的内容:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
<match target="font">
<test name="family"><string>SimSun</string></test>
<edit name="antialias"><bool>false</bool></edit>
<edit name="hinting"><bool>true</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
</match>
</fontconfig>
这样你的SimSun字体显示就会和wnidows下一样完美了! |
|