I'm having problems with Chinese font display on an English Ubuntu 7.04 Fiesty system. In a word processor or other application where I can control the font, I have no problems, but when it's configured by the system, I get ugly looking aliased fonts in any size below 18pt. I need to reconfigure it so that the system just uses the good-looking fonts instead of the bitmap fonts. What font configuration file should I be editing to solve this problem? There are so many files to choose from. Is it one of the many files in /etc/fonts/conf.avail or is it in /usr/share/language-selector/fontconfig/zh_CN? If so, which file can I edit to change which font displays small Chinese characters?
Does someone (who is using the native Ubuntu fonts and not MS fonts) have a dump of these files configured correctly that I could look at?
谢谢
font problems
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- dr_spork
- 帖子: 7
- 注册时间: 2007-09-06 3:43
- roylez
- 帖子: 1928
- 注册时间: 2005-10-04 10:59
- 来自: 上海
I guess what you need is actually a good ~/.fonts.conf . If you do not mind, you can try out mine first. It is not that good actually, but bearable.
代码: 全选
<?xml version="1.0"?>
<fontconfig>
<!-- Target dots per inch -->
<match target="pattern">
<edit name="dpi" mode="assign" >
<double>96</double>
</edit>
</match>
<!--Fonts rendering sequence-->
<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<!--<family>DejaVu Serif</family>-->
<family>AR PL ShanHeiSun Uni</family>
<family>Song Ti</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
<family>Fangsong Ti</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<!--<family>DejaVu Sans</family>-->
<family>AR PL ShanHeiSun Uni</family>
<family>Song Ti</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
<family>Fangsong Ti</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<!--<family>DejaVu Sans Mono</family>-->
<family>AR PL ShanHeiSun Uni</family>
<family>Song Ti</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
<family>Fangsong Ti</family>
</prefer>
</alias>
<!--Global settings for improving fonts rendering-->
<match target="font">
<test compare="more" name="pixelsize" qual="any">
<double>12</double>
</test>
<edit name="autohint" mode="assign" >
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit name="hinting">
<bool>true</bool>
</edit>
<!--subpixel hinting for LCD ONLY-->
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
<!--<edit name="hintstyle">-->
<!--<const>hintslight</const>-->
<!--</edit>-->
<edit name="antialias">
<bool>true</bool>
</edit>
</match>
<!--Make Chinese fonts bigger if it's smaller than 12 pixel-->
<match target="font" >
<test name="family" compare="contains" >
<string>SimSun</string>
<string>AR PL</string>
</test>
<test compare="less_eq" name="pixelsize">
<int>12</int>
</test>
<edit mode="assign" name="pixelsize">
<int>12</int>
</edit>
</match>
<!--Rendering settings for Chinese fonts-->
<match target="font" >
<test name="family" compare="contains" >
<string>SimSun</string>
<string>AR PL</string>
</test>
<edit name="globaladvance">
<bool>false</bool>
</edit>
<edit name="spacing">
<int>0</int>
</edit>
<test name="pixelsize" compare="less_eq">
<int>18</int>
</test>
<edit name="antialias" mode="assign" >
<bool>false</bool>
</edit>
</match>
</fontconfig>
✡ 弄个dropbox空间来备份文件或者做私人代码服务器?
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info