Commit 85ae802e authored by elros34's avatar elros34

Fix wrong cursor position

parent 3644a218
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment