[Konsole-devel] [Bug 98865] Konsole should use KGlobalSettings::fixedFont(); instead of "fixed"

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Thu Feb 10 06:04:25 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=98865         




------- Additional Comments From kurt.hindenburg kdemail net  2005-02-10 07:04 -------
CVS commit by hindenburg: 

Use KGlobalSettings::fixedFont(); note that the size is currently ignored.
CCBUGS: 98865


  M +3 -7      konsole.cpp   1.506
  M +3 -7      konsole_part.cpp   1.102


--- kdebase/konsole/konsole/konsole.cpp  #1.505:1.506
 @ -1535,7 +1535,6  @ void Konsole::readProperties(KConfig* co
 
       // (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);
 
 @ -1805,8 +1804,5  @ 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);

--- kdebase/konsole/konsole/konsole_part.cpp  #1.101:1.102
 @ -562,7 +562,6  @ 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));
 @ -703,8 +702,5  @ 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);



More information about the konsole-devel mailing list