From abbb82389062c0071acaaa37fc385ec43299ad82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 31 Aug 2017 00:07:29 +0200 Subject: [PATCH] Removed DPI dependency in print font size computation --- src/gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui.cpp b/src/gui.cpp index d0de370b..8ca1b8ad 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -1008,7 +1008,8 @@ void GUI::plot(QPrinter *printer) if (tm > 0 && _options.printMovingTime) info.insert(tr("Moving time"), Format::timeSpan(tm)); - qreal fsr = 96.0 / (qMax(printer->width(), printer->height()) / 3392.0); + qreal fsr = 1085.0 / (qMax(printer->width(), printer->height()) + / (qreal)printer->resolution()); ratio = p.paintEngine()->paintDevice()->logicalDpiX() / fsr; if (info.isEmpty()) { ih = 0;