chinese font in konqueror
I prefer to use firefox, instead of konqueror to browse Web pages. One reason is that konqueror always show wrong characters when rendering chinese Web pages.
Although I seldom use konqueror, it is a rather annoying problem, especially when I click chinese url in kopete, as it invokes konqueror window full of characters known by nobody.
This problem is caused by qt fonts manager. It will find alternatives if there is no font data for a character in current font used in the interface (I pretend that I know the reason, in fact, I am not sure, as some version qts does not have this problem). So, to display correct characters, we need to config substitutions for each font to be used.
For example, a konqueror display characters using arial fonts by default in many Web pages. So, we can add SimHei/SimSun as its substitutions. We can do this in qtconfig, or just like me, modify .qt/qtrc (for ubuntu dapper), and add a section:
[Font Substitutions]
AR PL ShanHeiSun Uni=SimHei
AR PL ZenKai Uni=SimHei
SimHei=\0
arial=SimHei
helv=SimHei
tms rmn=SimHei
Please refer to http://dot.kde.org/1075655865/1075658566/ for more discussion.
2 comments:
I'm glad you found a solution for your problem!
I was having trouble when formatting my hard drive (wanted a clean install), somehow it failed to create a filesystem... so I couldn't boot to my old Kubuntu, and was stuck with the Live CD... I created a 40-60 disk volume, but I think I'll try again with the Full disk formatting...
cannot format whole disk? I have never met this problem, except when the HD is spoiled.
:-D
good luck
Post a Comment