|
fonts.conf中已经有关于sans-serif/serif/monospace等alias定义,我习惯使用tahoma作为应用程序的字体,并使用simsun作为默认中文字体。
这在gnome下也没有问题,但是使用KDE程序如eva qq/kcontrol等时就有问题,无论fonts.conf中怎么设,默认的中文都是楷体,而不是我指定的simsun,除非把字体设置为sans-serif/serif/monospace中的一个,或者直接设置为中文字体。
在用ubuntu之前一直在使用FreeBSD和gentoo,没有发现KDE有这个问题(也是3.5版本)。但是在unbuntu下就是无法解决。不知道会不会是ubuntu下的KDE是binary而之前的是自己编译的引起的?
我的fonts.conf文件包含以下内容:
<!--默认family-->
<alias>
<family>DejaVu Serif</family>
<family>Bitstream Vera Serif</family>
<family>Times New Roman</family>
<family>Thorndale AMT</family>
<family>Times</family>
<family>Nimbus Roman No9 L</family>
<family>Luxi Serif</family>
<family>Kochi Mincho</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>MS 明朝</family>
<family>Baekmuk Batang</family>
<family>FreeSerif</family>
<family>MgOpen Canonica</family>
<default><family>serif</family></default>
</alias> <alias>
<family>DejaVu Sans</family>
<family>Bitstream Vera Sans</family>
<family>Helvetica</family>
<family>Arial</family>
<family>Verdana</family>
<family>Albany AMT</family>
<family>Nimbus Sans L</family>
<family>Luxi Sans</family>
<family>Kochi Gothic</family>
<family>AR PL KaitiM GB</family>
<family>AR PL KaitiM Big5</family>
<family>MS ゴシック</family>
<family>Baekmuk Dotum</family>
<family>SimSun</family>
<family>FreeSans</family>
<family>MgOpen Moderna</family>
<default><family>sans-serif</family></default>
</alias>
<alias>
<family>DejaVu Sans Mono</family>
<family>Bitstream Vera Sans Mono</family>
<family>Courier</family>
<family>Courier New</family>
<family>Andale Mono</family>
<family>Luxi Mono</family>
<family>Cumberland AMT</family>
<family>Nimbus Mono L</family>
<family>NSimSun</family>
<family>FreeMono</family>
<default><family>monospace</family></default>
</alias>
<!--替换列表-->
<alias>
<family>serif</family>
<prefer>
<family>Tahoma</family>
<family>SimSun</family>
<family>Bitstream Vera Serif</family>
<family>DejaVu Serif</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<family>Tahoma</family>
<prefer>
<family>Tahoma</family>
<family>SimSun</family>
<family>Bitstream Vera Sans</family>
<family>DejaVu Sans</family>
<family>SimSun</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Courier New</family>
<family>SimSun</family>
<family>Bitstream Vera Sans Mono</family>
<family>DejaVu Sans Mono</family>
<family>SimSun</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
按道理说既然这样的替换在gnome下可行,在KDE下也可以。但是KDE的程序如果选择serif/sans-serif/monospace这三个以外的英文字体,中文的字体都是楷体,也就是说上述的渲染规则没有应用到KDE程序里面去?
哪位位知道为什么? |
|