View previous topic :: View next topic |
Author |
Message |
z_sfeng Apprentice

Joined: 21 Apr 2004 Posts: 154 Location: Finland
|
Posted: Wed Feb 14, 2007 2:21 pm Post subject: I HATE QT/KDE for its strange fontconfig behavior! |
|
|
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 |
|
 |
z_sfeng Apprentice

Joined: 21 Apr 2004 Posts: 154 Location: Finland
|
Posted: Thu Feb 15, 2007 9:49 am Post subject: |
|
|
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 |
|
 |
z_sfeng Apprentice

Joined: 21 Apr 2004 Posts: 154 Location: Finland
|
Posted: Thu Feb 15, 2007 12:14 pm Post subject: |
|
|
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 |
|
 |
|