Paul de Vrieze <[EMAIL PROTECTED]> writes:
> Yesterday I installed the XFt-2 enabled QT. Now running konsole (the kde
> terminal application) It started out with very wide characters (from arial)
> This is caused by the fact that the font selection mechanism refuses to match
> the -misc-fixed-medium-r-* bitmapped font. I've tried out several
> configurations but none helped (except aliassing to a monospaced font, not
> arial).
>
> I'll attach a log from starting konsole, and my font.conf file.
Basically Konsole is looking for a font that isn't there so it
falls back to the default. The only thing to do about this is
to patch the hardcoded default fonts.
The attached is a patch from the Red Hat 8 KDE packages to do
this. (I'm not sure if it's the final version or not -- it's
just what was sitting in my patches directory.) It uses
'monospace' - the standard fontconfig name for the default
monospace font - instead of 'fixed'
For your own use, you can also just select a different font
with the font selector in Konsole, of course.
Regards,
Owen
--- kdebase-3.0.3/konsole/konsole/konsole.cpp.fontkonsole 2002-08-11 11:30:03.000000000 +0200
+++ kdebase-3.0.3/konsole/konsole/konsole.cpp 2002-08-11 11:30:03.000000000 +0200
@@ -152,8 +152,6 @@
"13", // medium
"15", // large
"20", // huge
- "-misc-console-medium-r-normal--16-160-72-72-c-160-iso10646-1", // "Linux"
- "-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1", // "Unicode"
};
#define TOPFONT (sizeof(fonts)/sizeof(char*))
#define DEFAULTFONT TOPFONT
@@ -494,9 +492,6 @@
<< i18n("&Large")
<< i18n("&Huge")
<< ""
- << i18n("L&inux")
- << i18n("&Unicode")
- << ""
<< i18n("&Custom...");
selectFont->setItems(it);
selectFont->plug(m_options);
@@ -862,7 +857,7 @@
// Options that should be applied to all sessions /////////////
// (1) set menu items and Konsole members
- QFont tmpFont("fixed");
+ QFont tmpFont("Monospace");
defaultFont = config->readFontEntry("defaultfont", &tmpFont);
setFont(QMIN(config->readUnsignedNumEntry("font",3),TOPFONT));
@@ -1083,7 +1078,7 @@
}
else
{
- f.setFamily("fixed");
+ f.setFamily("Monospace");
f.setFixedPitch(true);
f.setPixelSize(QString(fonts[fontno]).toInt());
}
--- kdebase-3.0.3/konsole/konsole/konsole_part.cpp.fontkonsole 2002-08-05 16:56:24.000000000 +0200
+++ kdebase-3.0.3/konsole/konsole/konsole_part.cpp 2002-08-11 11:40:55.000000000 +0200
@@ -130,8 +130,6 @@
"13", // medium
"15", // large
"20", // huge
- "-misc-console-medium-r-normal--16-160-72-72-c-160-iso10646-1", // "Linux"
- "-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1", // "Unicode"
};
#define TOPFONT (sizeof(fonts)/sizeof(char*))
@@ -331,9 +329,6 @@
<< i18n("&Large")
<< i18n("&Huge")
<< ""
- << i18n("&Linux")
- << i18n("&Unicode")
- << ""
<< i18n("&Custom...");
selectFont->setItems(it);
selectFont->plug(m_options);
@@ -449,7 +444,7 @@
m_histSize = config->readNumEntry("history",DEFAULT_HISTORY_SIZE);
s_word_seps= config->readEntry("wordseps",":@-./_~");
- QFont tmpFont("fixed");
+ QFont tmpFont("Monospace");
defaultFont = config->readFontEntry("defaultfont", &tmpFont);
setFont(QMIN(config->readUnsignedNumEntry("font",3),TOPFONT));
@@ -575,7 +570,7 @@
}
else
{
- f.setFamily("fixed");
+ f.setFamily("Monospace");
f.setFixedPitch(true);
f.setPixelSize(QString(fonts[fontno]).toInt());
}