summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-10-03 17:50:39 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-03 09:38:26 -0700
commit374f3d0de62722cf4153d12754edf6fb110ce33d (patch)
tree02c1a724f44b264bf0b063e259f05dd98eadcabc
parent50e74f45657415f9bde9280aabd078e963f2094a (diff)
downloadsubsurface-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.cpp3
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());