RESOLVED INVALID 55356
[Qt] QWebView::print() fails to print a page that contains non latin characters
https://bugs.webkit.org/show_bug.cgi?id=55356
Summary [Qt] QWebView::print() fails to print a page that contains non latin characters
Tasuku Suzuki
Reported 2011-02-28 00:51:13 PST
How to reproduce: * build and run the example attached * wait until http://google.co.jp/ is loaded * make sure you see Japanese Version of the site * click the button on top (PushButton) * print preview appears * check the button "Google 検索" and text "Google について" are not printed correctly Notes: * I reproduced this issue with Qt 4.7.1(MinGW) bundled with Qt SDK 1.1 TP on Windows 7 and Mac OS X(10.6) * Neither print preview nor printing to a printer looks fine. * It seems to happen only for text that contains both latin and non latin characters.
Attachments
Sample app to reproduce (1.60 KB, application/x-gzip)
2011-02-28 00:52 PST, Tasuku Suzuki
no flags
Screenshot of print preview dialog (97.84 KB, image/png)
2011-02-28 00:52 PST, Tasuku Suzuki
no flags
Tasuku Suzuki
Comment 1 2011-02-28 00:52:07 PST
Created attachment 84027 [details] Sample app to reproduce
Tasuku Suzuki
Comment 2 2011-02-28 00:52:48 PST
Created attachment 84028 [details] Screenshot of print preview dialog
Benjamin Poulain
Comment 3 2011-02-28 03:09:35 PST
I wonder if this is a regression. Jocelyn, do you think this can be linked with fast font path?
Jocelyn Turcotte
Comment 4 2011-02-28 03:22:10 PST
(In reply to comment #3) > I wonder if this is a regression. > Jocelyn, do you think this can be linked with fast font path? Looks like reported text's width isn't the same as the drawn one. We had similar regressions with the fast font path since the metric code paths are a bit different when measuring and drawing, so this might be linked yes.
Junhot
Comment 5 2011-03-24 13:18:36 PDT
Chinese pages have the same problem. But I found it can be solved by set the font-family to the chinese fonts in the CSS. So...How about Google now...
Junhot
Comment 6 2011-03-24 13:34:14 PDT
And it seems that the problem appeared after Qt4.7, Qt4.6.3 works fine.
Jocelyn Turcotte
Comment 7 2014-02-03 03:17:20 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.
Note You need to log in before you can comment on or make changes to this bug.