diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-09 13:09:52 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-09 13:12:29 -0700 |
commit | 76a8e83a541febe9b94ec84d3fd8320c86999265 (patch) | |
tree | aa64d0b6de2e28c73026653479cab60f0b6f3d10 /qt-ui/printlayout.cpp | |
parent | 2d77788cb2fe293b72cff7f51a200d90c928dcea (diff) | |
download | subsurface-76a8e83a541febe9b94ec84d3fd8320c86999265.tar.gz |
Printing: scale fonts when printing
This seem to work better, but it misses a couple of items at times (for
example the highest label on some of the axis).
Needs lots more testing.
See #590
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printlayout.cpp')
-rw-r--r-- | qt-ui/printlayout.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp index 1c0a82829..a23b8e3a8 100644 --- a/qt-ui/printlayout.cpp +++ b/qt-ui/printlayout.cpp @@ -136,6 +136,7 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn) const int profileFrameStyle = profile->frameStyle(); profile->setFrameStyle(QFrame::NoFrame); profile->setPrintMode(true, !printOptions->color_selected); + profile->setFontPrintScale(0.4); // does a single scale work for all layouts??? QSize originalSize = profile->size(); // swap rows/col for landscape if (printer->orientation() == QPrinter::Landscape) { |