From c31895018acd42d5cd698b4f35c280d886f7341a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20A=CC=81ngel=20San=20Marti=CC=81n=20Rodri=CC=81guez?= Date: Thu, 29 Sep 2022 22:01:54 +0200 Subject: [PATCH] Use points instead of pixels --- common/gl/yacreader_flow_gl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/gl/yacreader_flow_gl.cpp b/common/gl/yacreader_flow_gl.cpp index a2dd76b4..2f039591 100644 --- a/common/gl/yacreader_flow_gl.cpp +++ b/common/gl/yacreader_flow_gl.cpp @@ -331,7 +331,7 @@ void YACReaderFlowGL::paintGL() QFont font = painter.font(); font.setFamily("Arial"); - font.setPixelSize(fontSize); + font.setPointSize(fontSize); painter.setFont(font); painter.setPen(QColor(76, 76, 76)); @@ -342,8 +342,7 @@ void YACReaderFlowGL::paintGL() void YACReaderFlowGL::resizeGL(int width, int height) { - float pixelRatio = devicePixelRatioF(); - fontSize = (width + height) * 0.010 * pixelRatio; + fontSize = (width + height) * 0.010; if (fontSize < 10) fontSize = 10;