Do not process font that didn't change

wilder-portage
Mariusz Glebocki 7 years ago
parent 41693fe9ee
commit ab6cca0535
  1. 5
      src/TerminalDisplay.cpp

@ -302,6 +302,11 @@ void TerminalDisplay::setVTFont(const QFont& f)
// italic, etc) are stored in QFont independently, in almost all cases styleName is not needed.
newFont.setStyleName(QString());
if (newFont == font()) {
// Do not process the same font again
return;
}
QFontInfo fontInfo(newFont);
// QFontInfo::fixedPitch() appears to not match QFont::fixedPitch()

Loading…
Cancel
Save