Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
bd3de374
Commit
bd3de374
authored
Apr 17, 2021
by
Kurt Hindenburg
Browse files
Add a TODO about Qt6 removing QFont::ForceIntegerMetrics
parent
68e9f474
Changes
1
Show whitespace changes
Inline
Side-by-side
src/terminalDisplay/TerminalFonts.cpp
View file @
bd3de374
...
...
@@ -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 "
<<
newFont
.
toString
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment