LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-16-2005, 10:32 AM   #1
ZEROplus
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Rep: Reputation: 0
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!!!


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

How could I put these all things in order?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
QT and Fontconfig BUG? ZEROplus Linux - General 1 10-16-2005 10:41 AM
where is fontconfig.pc darkleaf Debian 3 09-26-2004 01:13 PM
Free86 bug or nVidia bug?? ProtoformX Linux - Software 2 05-12-2004 02:38 AM
Another problem........fontconfig-2.2.2 / fontconfig-2.2.94 xonner Linux - Software 2 04-28-2004 10:13 PM
where is fontconfig.pc ? toships Linux - Newbie 5 02-28-2004 06:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 12:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration