Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix wrong cursor position
  • Loading branch information
elros34 committed Aug 23, 2018
1 parent 3644a21 commit 85ae802
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions textrender.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 85ae802

Please sign in to comment.