Firstly, My System: SuSE9.2, upgraded to Vanilla Kernel 2.6.12 and KDE 3.4.0
The Problem is: I wanna have a beautiful font display for both english and chinese, so i decided to use "SUSE Sans" as basic font and let it use "SimSun" when it comes to chinese characters. By default, it uses "FZSongTi" for chinese.
The first way I thought of is qtconfig.
I configured "Font Substitution" for "SUSE Sans" so that "SimSun" is the single substitution possibility for it. But after I restarted the system, it didn't seem to work as predicted. All Programms such as Kwrite and Konqueror still use "FZSongTi" for chinese. After trial and error I gave up using this method, coz qtconfig Font Substitution doesn't function at all!!!
After I did a internet rummage I found a second solution: fontconfig.
I deleted all "FZSongTi" entries in all config files in /etc/fonts/ and change the config like follows:
Code:
<alias>
<family>Trebuchet</family>
<family>Segoe</family>
<family>Andale Sans</family>
<family>Albany AMT</family>
<family>SUSE Sans</family>
<default><family>sans-serif</family></default>
</alias>
........
<alias>
<family>sans-serif</family>
<prefer>
<family>Verdana</family>
<family>Arial</family>
<family>Albany AMT</family>
<family>SUSE Sans</family>
<family>Luxi Sans</family>
<family>SimSun</family>
</prefer>
</alias>
After a restart, to my surprise, all KDE programms still preferred "FZSongTi" to "SimSun". But GTK programms worked correctly.
Even if I force fontconfig to use "SimSun" like follows
Code:
<match target="pattern">
<edit name="family">
<string>SimSun</string>
</edit>
</match>
KDE programms would NOT follow the rule ANYWAY. (Again, GTK apps work)
Only after I completely DELETED "FZSongTi" did KDE stop to use it!!!
I wonder if "FZSongTi" have a confidential connection with QT/KDE ?
How could I put these all things in order?