Bug 55356 - [Qt] QWebView::print() fails to print a page that contains non latin characters
Summary: [Qt] QWebView::print() fails to print a page that contains non latin characters
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Printing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.6
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2011-02-28 00:51 PST by Tasuku Suzuki
Modified: 2014-02-03 03:17 PST (History)
3 users (show)

See Also:


Attachments
Sample app to reproduce (1.60 KB, application/x-gzip)
2011-02-28 00:52 PST, Tasuku Suzuki
no flags Details
Screenshot of print preview dialog (97.84 KB, image/png)
2011-02-28 00:52 PST, Tasuku Suzuki
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tasuku Suzuki 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.
Comment 1 Tasuku Suzuki 2011-02-28 00:52:07 PST
Created attachment 84027 [details]
Sample app to reproduce
Comment 2 Tasuku Suzuki 2011-02-28 00:52:48 PST
Created attachment 84028 [details]
Screenshot of print preview dialog
Comment 3 Benjamin Poulain 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?
Comment 4 Jocelyn Turcotte 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.
Comment 5 Junhot 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...
Comment 6 Junhot 2011-03-24 13:34:14 PDT
And it seems that the problem appeared after Qt4.7, Qt4.6.3 works fine.
Comment 7 Jocelyn Turcotte 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.