summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qprintengine_win_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>2014-10-28 10:00:56 +0100
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>2014-11-15 08:49:15 +0100
commit1ffe39dfd155c1318e249591c71e808437cc9696 (patch)
tree9d4b58906967789409827ed22e2cd084d1218765 /src/printsupport/kernel/qprintengine_win_p.h
parent2f1d22c8b4033b7160dde08ba232d22a620f8cd7 (diff)
Make it possible to disable font embedding
When font embedding is explicitly disabled, fall back to painter paths as we would if the font prohibits embedding. Note that this flag was never respected on any platform in any version of Qt, as far as I've been able to tell, because the handling of it in the X11 print engine was removed shortly after it was introduced in 2005. [ChangeLog][Printing] Disabling font embedding is now possible using the QPrinter::setFontEmbedding() function. Task-number: QTBUG-41943 Change-Id: Ice5e893f9893c5243310ae7892bec7497dd55c4a Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/printsupport/kernel/qprintengine_win_p.h')
-rw-r--r--src/printsupport/kernel/qprintengine_win_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/printsupport/kernel/qprintengine_win_p.h b/src/printsupport/kernel/qprintengine_win_p.h
index b84bde8a92..0a87795bb8 100644
--- a/src/printsupport/kernel/qprintengine_win_p.h
+++ b/src/printsupport/kernel/qprintengine_win_p.h
@@ -125,7 +125,8 @@ public:
m_pageLayout(QPageLayout(QPageSize(QPageSize::A4), QPageLayout::Portrait, QMarginsF(0, 0, 0, 0))),
num_copies(1),
printToFile(false),
- reinit(false)
+ reinit(false),
+ embed_fonts(true)
{
}
@@ -216,6 +217,7 @@ public:
uint has_pen : 1;
uint has_brush : 1;
uint has_custom_paper_size : 1;
+ uint embed_fonts : 1;
uint txop;