File allow-certain-variable-width-fonts.patch of Package konsole.openSUSE_Leap_42.1_Update
commit 1e2dc1083c1fe3b1c7acd028832c70bf8006848f
Author: Kurt Hindenburg <kurt.hindenburg@gmail.com>
Date: Sat Jan 30 15:46:35 2016 -0500
Allow certain variable-width fonts to be used
For certain fonts (with ligatures) QFontInfo::fixedPitch doesn't return
the correct result. Previously, these fonts were not allowed to be
used. Variable-width fonts are still not selectable in the font dialog.
Thanks to Stefan Seemayer stefan seemayer de for research and patch.
See reviewboard for a more detailed description
REVIEW: 126921
diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp
index 536aea6..3272122 100644
--- a/src/TerminalDisplay.cpp
+++ b/src/TerminalDisplay.cpp
@@ -226,8 +226,7 @@ void TerminalDisplay::setVTFont(const QFont& f)
QFontInfo fontInfo(newFont);
if (!fontInfo.fixedPitch()) {
- qWarning() << "Ignoring font change due to it being variable-width";
- return;
+ qWarning() << "Using a variable-width font - this might cause display problems";
}
// QFontInfo::fixedPitch() appears to not match QFont::fixedPitch()