LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   QT and Fontconfig BUG? (https://www.linuxquestions.org/questions/linux-general-1/qt-and-fontconfig-bug-373608/)

ZEROplus 10-16-2005 10:35 AM

QT and Fontconfig BUG?
 
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!!! :mad:


I wonder if "FZSongTi" have a confidential connection with QT/KDE ?:confused:

How could I put these all things in order?

david_ross 10-16-2005 10:41 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

Please continue here:
http://www.linuxquestions.org/questi...hreadid=373607


All times are GMT -5. The time now is 07:25 AM.