Skip to content

Commit

Permalink
Merge pull request #1 from marcusbritanicus/Qt6Update
Browse files Browse the repository at this point in the history
Fix issue cursor positioning issues
  • Loading branch information
doug1234 authored Feb 26, 2024
2 parents 184c9fe + c880ab2 commit 7052dc2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/TerminalDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,15 @@ void TerminalDisplay::setVTFont(const QFont& f)
// Disabling kerning saves some computation when rendering text.
font.setKerning(false);

// QFont::ForceIntegerMetrics has been removed.
// Set full hinting instead to ensure the letters are aligned properly.
font.setHintingPreference(QFont::PreferFullHinting);

// "Draw intense colors in bold font" feature needs to use different font weights. StyleName
// property, when set, doesn't allow weight changes. Since all properties (weight, stretch,
// italic, etc) are stored in QFont independently, in almost all cases styleName is not needed.
font.setStyleName(QString());

QWidget::setFont(font);
fontChange(font);
}
Expand Down

0 comments on commit 7052dc2

Please sign in to comment.