[Qt-interest] QWebKit does not display chinese charcters from chinese web site
John McClurkin
jwm at nei.nih.gov
Thu Jul 23 21:55:47 CEST 2009
Sorin Lazarescu wrote:
> Hi John
>
> What is the folder that QWebKit is searching on Linux for chinese fonts?
>
>
> Thanks
>
I don't know about QWebKit, but in general, fonts on Linux are in
/usr/share/X11/fonts.
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of John McClurkin
> Sent: July 23, 2009 3:33 PM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] QWebKit does not display chinese charcters
> from chinese web site
>
> Sorin Lazarescu wrote:
>> Hi everybody
>>
>>
>>
>> I use a small QT sample that uses QWebKit to render HTML pages. The
>> small sample written in Qt is below:
>>
>>
>>
>> QWidget *win = new QWidget();
>>
>> QVBoxLayout *lay = new QVBoxLayout();
>>
>> QWebView *web = new QWebView();
>>
>> web->load(QUrl("http://chinese.aol.com"));
>>
>> lay->addWidget(web);
>>
>> win->setLayout(lay);
>>
>> win->show();
>>
>>
>>
>> I have no problem to display any English Web site but when I am going
> to
>> http://chinese.aol.com all Chinese characters from the site are
>> presented as empty boxes or nothing. Arora that is based on WebKit
>> module has also the same problem when loading chinese site!
>>
>>
>>
>> Is any way I could use WebKit and display the chinese HTML pages as IE
>
>> is doing?
>
> You need to have Chinese fonts in directory searched by QWebKit. I don't
>
> know where IE looks for fonts.
>
>>
>>
>> Thanks
>>
>>
>>
>> Sorin
>>
>>
>>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list