Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
大致解决了konqueror的中文乱码问题
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
z_sfeng
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 154
Location: Finland

PostPosted: Sat Jun 25, 2005 2:19 pm    Post subject: 大致解决了konqueror的中文乱码问题 Reply with quote

[EDIT]
现在kde浏览中文网页几乎已经没有问题了,至少到现在为止。我觉得有必要把我的经验分享一下,所以把标题改了重新发:
觉得kde-3.4的界面有很大改进,干净多了,很喜欢。用了split ebuild,至少心里上没觉得臃肿了,现在觉得很喜欢用。
KDE本身的中文输入,显示已经没有任何问题了。但在浏览网页时,我一直有问题。缺码非常严重。繁体网页则好多了。

原因应该在QT的字体替换上。跟GTK不一样,QT好像没有用xorg的字体替换(/etc/fonts/font.conf),而是自己定义了字体替换。用户可以用qtconfig设置,或直接编辑(~/.qt/qtrc)。
比方说:我把我的KDE以及konqueror字体全部设成Tahoma,然后在qtconfig里设置其他编码的字体。这样,如果要显示Tahoma里没有的编码,qt就会安设置的寻找替换字体。

这在KDE应用里没有问题,但浏览很多网页时有问题。如果网页没有指定字体,konqueror就会用我们设置的字体,以及字体替换来显示;但如果网页指定了特定的字体,而且没有在我的qtconfig里设置字体替换的话,QT就用缺省的字体。不知道QT到底用了什么样的替换,在我的系统里,就是一大堆点点和方框。

我的解决方法是:查看网页的HTML,找到他所用的字体,然后给这个字体设置替换。:lol:很简单,但很有效。

有些网页很难从HTML里找出字体,比如说,这个gentoo forum。但一般,缺省所用的字体就那么有限的几个,我设置了这几个字体后,就没问题了:
Sans, Sans-Serif, Serif, Monospace, Arial, Times, Verdana, Helvetica

当然,最好是能设置QT的缺省字体替换,但我不知道 :(

[Original Post]
can anybody give me a copy of or a link to zhttf-fonts? I can't emerge if anymore since the I can't connect to linux-sir.
I like this fonts very much. It solves all my fonts problems in KDE.

or if anybody know how to do fonts substitution in KDE/QT? I have chinese font problems after some x11/KDE updates.:D


Last edited by z_sfeng on Mon Jun 27, 2005 6:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
Freesnake
n00b
n00b


Joined: 12 May 2005
Posts: 35

PostPosted: Sun Jun 26, 2005 2:42 am    Post subject: Reply with quote

你说的是什么意思?是没有中文字体还是说中文字体设置有问题?
Back to top
View user's profile Send private message
z_sfeng
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 154
Location: Finland

PostPosted: Sun Jun 26, 2005 2:44 pm    Post subject: Reply with quote

我最近升级到了spli-kde 3.4.1。
现在在konqueror里的中文显示有问题。KDE本身的中文是正常的。问题应该在konqueror字体替换,我想,应该是网页指定了字体,但没有在我的qt的字体替换列表里。
我不记得以前我有没有打补丁了,但好像用了那个zhttf-fonts就没问题了。
Back to top
View user's profile Send private message
Freesnake
n00b
n00b


Joined: 12 May 2005
Posts: 35

PostPosted: Mon Jun 27, 2005 3:27 pm    Post subject: Reply with quote

Konqueror浏览网页的话默认编码用GB2312,一些繁体字和简体显示不了是正常的,改到GBK即可。如果做文件管理器用看不了一些汉字的话,建议更新一下freetype、libxft2什么的……或者改改local.conf……
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) 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