LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 10-16-2005, 10:35 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?
 
Old 10-16-2005, 10:41 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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
 
  


Closed Thread



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
QT and Fontconfig BUG? ZEROplus SUSE / openSUSE 0 10-16-2005 10:32 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 - General

All times are GMT -5. The time now is 04:22 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