Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Fingerterm cursor position fix
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));
QFontMetrics fontMetrics(iFont);
iFontHeight = fontMetrics.height();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment