summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpdf.cpp
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2009-03-31 09:07:07 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2009-03-31 09:10:22 (GMT)
commit3d370dc92466b010bfe6cdd82411f7e3d13da7c1 (patch)
tree9d726dea65ee37c40b852c7555b068a004a869ef /src/gui/painting/qpdf.cpp
parenta0601e169c114f66c5fb932a6cc8606a8151bebc (diff)
downloadQt-3d370dc92466b010bfe6cdd82411f7e3d13da7c1.zip
Qt-3d370dc92466b010bfe6cdd82411f7e3d13da7c1.tar.gz
Qt-3d370dc92466b010bfe6cdd82411f7e3d13da7c1.tar.bz2
Fix text drawing and perspective transforms for the Windows, PDF and
PostScript print engines. The PDF/PostScript does not support perspective transforms, so it has to be emulated through our draw_helper() fallback. PostScript doesn't support alpha blending, so all perspective drawing needs to be forced through the alpha print engine. Task-number: 249754 Reviewed-by: Samuel
Diffstat (limited to 'src/gui/painting/qpdf.cpp')
-rw-r--r--src/gui/painting/qpdf.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp
index b010209..55006f6 100644
--- a/src/gui/painting/qpdf.cpp
+++ b/src/gui/painting/qpdf.cpp
@@ -1106,6 +1106,11 @@ void QPdfBaseEngine::drawTextItem(const QPointF &p, const QTextItem &textItem)
if (!d->hasPen || (d->clipEnabled && d->allClipped))
return;
+ if (d->stroker.matrix.type() >= QTransform::TxProject) {
+ QPaintEngine::drawTextItem(p, textItem);
+ return;
+ }
+
*d->currentPage << "q\n";
if(!d->simplePen)
*d->currentPage << QPdf::generateMatrix(d->stroker.matrix);