From bd3de374678b697c2301fd5171c577e3e6699dfc Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Sat, 17 Apr 2021 14:27:54 -0400 Subject: [PATCH] Add a TODO about Qt6 removing QFont::ForceIntegerMetrics --- src/terminalDisplay/TerminalFonts.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/terminalDisplay/TerminalFonts.cpp b/src/terminalDisplay/TerminalFonts.cpp index 95681139..d3d48ff9 100644 --- a/src/terminalDisplay/TerminalFonts.cpp +++ b/src/terminalDisplay/TerminalFonts.cpp @@ -55,6 +55,8 @@ namespace Konsole strategy |= m_antialiasText ? QFont::PreferAntialias : QFont::NoAntialias; // Konsole cannot handle non-integer font metrics + // TODO: Qt6 will remove ForceIntegerMetrics + // "Use QFontMetrics to retrieve rounded font metrics." strategy |= QFont::ForceIntegerMetrics; // In case the provided font doesn't have some specific characters it should @@ -71,6 +73,8 @@ namespace Konsole // Font listed in profile's dialog will not be updated. newFont = QFont(QStringLiteral("Monospace")); // Set style strategy without ForceIntegerMetrics for the font + // TODO: Qt6 will remove ForceIntegerMetrics + // "Use QFontMetrics to retrieve rounded font metrics." strategy &= ~QFont::ForceIntegerMetrics; newFont.setStyleHint(QFont::TypeWriter, QFont::StyleStrategy(strategy)); qCDebug(KonsoleDebug)<<"Font changed to "<