diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-10-03 17:50:39 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-03 09:38:26 -0700 |
commit | 374f3d0de62722cf4153d12754edf6fb110ce33d (patch) | |
tree | 02c1a724f44b264bf0b063e259f05dd98eadcabc | |
parent | 50e74f45657415f9bde9280aabd078e963f2094a (diff) | |
download | subsurface-374f3d0de62722cf4153d12754edf6fb110ce33d.tar.gz |
Profile: use a 10px font when printing profile text
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/profilegraphics.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index 17598a6af..29fd7c699 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -1196,6 +1196,9 @@ QGraphicsItemGroup *ProfileGraphicsView::plot_text(text_render_options_t *tro,co QFont fnt(font()); QFontMetrics fm(fnt); + if (printMode) + fnt.setPixelSize(10); + QPointF point(SCALEGC(pos.x(), pos.y())); // This is neded because of the SCALE macro. double dx = tro->hpos * (fm.width(text)); double dy = tro->vpos * (fm.height()); |