Konqueror doesn't display chinese page correctly with en_US

Bug #45493 reported by depp
8
Affects Status Importance Assigned to Milestone
fontconfig (Ubuntu)
New
Medium
Unassigned
qt-x11-free (Ubuntu)
New
Medium
Unassigned

Bug Description

Binary package hint: fontconfig

I used fontconfig-voodoo -f -s zh_CN to set preferred fonts of simplified chinese. Konqueror doesn't display chinese fonts well in all chinese pages. like www.mindmeters.com or http://www.google.com/intl/zh-CN/

Revision history for this message
depp (li-sun) wrote :

locale remains en_US not zh_CN. I know if i change the locale to zh_CN, it should be correct. but i think chinese should be shown well in all locale

Revision history for this message
depp (li-sun) wrote :

What difference does Konqueror do, according to the locale variable?
Or to ask, besides link /usr/share/language-selector/fontconfig/zh_CN to /etc/fonts/language-selector.conf, and set all locale variables to zh_CN.utf8, what happens at the same time?

Revision history for this message
depp (li-sun) wrote :

Btw, i set Sans Serif, Monospace and Serif in konqueror's font-setting.

Revision history for this message
Michael Ummels (urmel291) wrote :

I have the same problem. It seems to appear not only in Konqueror, but in any QT application. Whenever I type in Chinese characters in a QT application, Qt uses the Japanese font Kochi Mincho to render them instead of one of the Chinese unicode fonts as specified in /etc/fonts/language-selector.conf (symlink to /usr/share/language-selector/fontconfig/zh_TW on my system). Font substitution works fine in GTK apps, though.

Revision history for this message
Michael Ummels (urmel291) wrote :

I should add that everything worked fine in Breezy, where I used /etc/fonts/local.conf to give preference to the Chinese unicode fonts. However, this does not seem to work anymore in Dapper (at least for Qt apps).

Revision history for this message
Michael Ummels (urmel291) wrote :

A workaround seems to be to add the following to $HOME/.qt/qtrc:

[Font Substitutions]
Bitstream Vera Sans=\0
DejaVu Sans=AR PL ZenKai Uni^e
DejaVu Sans Condensed=AR PL ZenKai Uni^e
DejaVu Sans Mono=AR PL ZenKai Uni^e
DejaVu Serif=AR PL ShanHeiSun Uni^e
DejaVu Serif Condensed=AR PL ShanHeiSun Uni^e
Kochi Mincho=\0
Sans Serif=\0
arial=helvetica^e
helv=helvetica^e
tms rmn=times^e

Replace "DejaVu Sans" and "DejaVu Serif" with your standard sans and serif font, respectively.

Revision history for this message
LI Daobing (lidaobing) wrote :

the previous workaround sounds that DejaVu fonts is the default font for QT, but I see most of the applications choose sans, serif and monospace as the default font, I can't find any config file in "/etc/fonts" and "/etc/qt3" mention about sans/serif/monospace is mapped to dejavu's fonts. who can tell me why the dejavu's fonts is the default fonts? thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.