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.
Created attachment 84027 [details] Sample app to reproduce
Created attachment 84028 [details] Screenshot of print preview dialog
I wonder if this is a regression. Jocelyn, do you think this can be linked with fast font path?
(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.
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...
And it seems that the problem appeared after Qt4.7, Qt4.6.3 works fine.
=== 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.