Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
4.4.3, 5.4.2
-
None
Description
When printing the content of a QWebView to a regular laser printer, fonts appear slightly smaller than they should.
// Test case
// ------------------------------------
#include <QtGui>
#include <QtWebKit>
int main(int argc, char** argv)
{
QApplication app(argc, argv);
QString html;
html += "<html><head>\n";
html += "<style type=\"text/css\">\n";
html += "<!--\n";
html += "h1
\n";
html += "-->\n";
html += "</style>\n";
html += "</head><body>";
html += " <h1>This should be 1 inch high.</h1>\n";
html += "</body></html>";
QWebView view;
view.setHtml(html);
QPrinter printer(QPrinterInfo::defaultPrinter(), QPrinter::HighResolution);
QPrintPreviewDialog dialog(&printer);
dialog.connect(&dialog, SIGNAL(paintRequested(QPrinter*)), &view, SLOT(print(QPrinter*)));
dialog.exec();
return 0;
}
// ------------------------------------
Attachments
Issue Links
- is required for
-
QTBUG-25378 QtPrintSupport - Font Issues
- Open