From 85ae802ee5498c0944488f348008a2c33ece70d4 Mon Sep 17 00:00:00 2001 From: elros34 Date: Fri, 17 Aug 2018 13:25:22 +0200 Subject: [PATCH] Fix wrong cursor position --- textrender.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/textrender.cpp b/textrender.cpp index ee1aff9..2eac738 100644 --- a/textrender.cpp +++ b/textrender.cpp @@ -76,6 +76,7 @@ TextRender::TextRender(QQuickItem *parent) : iShowBufferScrollIndicator = false; iFont = QFont(sUtil->fontFamily(), sUtil->fontSize()); + iFont.setStyleHint(QFont::Monospace, QFont::StyleStrategy(QFont::PreferDefault | QFont::ForceIntegerMetrics)); iFont.setBold(false); QFontMetrics fontMetrics(iFont); iFontHeight = fontMetrics.height();