Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I HATE QT/KDE for its strange fontconfig behavior!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
z_sfeng
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 154
Location: Finland

PostPosted: Wed Feb 14, 2007 2:21 pm    Post subject: I HATE QT/KDE for its strange fontconfig behavior! Reply with quote

I never made my KDE to surpport simplified chinese flawlessly.
I think I know how to use fontconfig. I edit local.conf for the <prefer> font substition. I checked with fc-match like
Code:
fc-match --sort terminus
.
It gave me what I supposed. And gtk2 applications just work perfectly as I expected.

BUT KDE/QT does not!
So as I heard, I can define qt font substition in .qtrc or with qtconfig. Unfortuantely, I fond my qtconfig runs with QT4. So I edit the qtrc like this:
Code:
[Font Substitutions]
Terminus=SimSun^e

To be sure, I did it both with qtconfig(for qt4) and qtrc.
None works.

It seems fontconfig works with generic font name like "sans", "serif" in QT/KDE. But not with even arial. That means I have trouble with lots of chinese webpages...

HELP! HELP! HELP!
Back to top
View user's profile Send private message
z_sfeng
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 154
Location: Finland

PostPosted: Thu Feb 15, 2007 9:49 am    Post subject: Reply with quote

OK. I got new infomation from a google.
From QT 3.3.6, only the generic fonts "sans, serif, mono" will be substituted as configed in fontconfig. others will be dealt by qt default.

What the hell is QT DEFAULT! so what can i do with a lot webpages set "arial" as their fonts?
Back to top
View user's profile Send private message
z_sfeng
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 154
Location: Finland

PostPosted: Thu Feb 15, 2007 12:14 pm    Post subject: Reply with quote

More infomation ...
1. for non-generic fonts ("sans serif","serif","monospace"), QT use it own font substition instead of fontconfig;
2. QT can not distinguish between Japanese and Chinese. So it uses japanese font instead of chinese ...

I go crazy with QT....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum