diff --git a/konsole/konsole.cpp b/konsole/konsole.cpp index 65380512..407d9f24 100644 --- a/konsole/konsole.cpp +++ b/konsole/konsole.cpp @@ -1534,9 +1534,8 @@ void Konsole::readProperties(KConfig* config, const QString &schema, bool global // Options that should be applied to all sessions ///////////// // (1) set menu items and Konsole members - QFont tmpFont("fixed"); - tmpFont.setFixedPitch(true); - tmpFont.setStyleHint(QFont::TypeWriter); + // TODO: Use font size in fixedFont() + QFont tmpFont = KGlobalSettings::fixedFont(); defaultFont = config->readFontEntry("defaultfont", &tmpFont); //set the schema @@ -1804,10 +1803,7 @@ void Konsole::setFont(int fontno) } else { - QFont f; - f.setFamily("fixed"); - f.setFixedPitch(true); - f.setStyleHint(QFont::TypeWriter); + QFont f = KGlobalSettings::fixedFont(); f.setPixelSize(QString(fonts[fontno]).toInt()); te->setVTFont(f); } diff --git a/konsole/konsole_part.cpp b/konsole/konsole_part.cpp index 0ebad526..1deb9d07 100644 --- a/konsole/konsole_part.cpp +++ b/konsole/konsole_part.cpp @@ -561,9 +561,8 @@ void konsolePart::readProperties() n_encoding = config->readNumEntry("encoding",0); - QFont tmpFont("fixed"); - tmpFont.setFixedPitch(true); - tmpFont.setStyleHint(QFont::TypeWriter); + // TODO: Use font size in fixedFont() + QFont tmpFont = KGlobalSettings::fixedFont(); defaultFont = config->readFontEntry("defaultfont", &tmpFont); setFont(QMIN(config->readUnsignedNumEntry("font",3),TOPFONT)); @@ -702,10 +701,7 @@ void konsolePart::setFont(int fontno) } else { - QFont f; - f.setFamily("fixed"); - f.setFixedPitch(true); - f.setStyleHint(QFont::TypeWriter); + QFont f = KGlobalSettings::fixedFont(); f.setPixelSize(QString(fonts[fontno]).toInt()); te->setVTFont(f); }