Bug 130232 - Changing fonts in K Control Center or in fontconfig doesn't take effect in Konsole
Summary: Changing fonts in K Control Center or in fontconfig doesn't take effect in Ko...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.6.3
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Robert Knight
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-04 02:57 UTC by Charles A. Landemaine
Modified: 2007-07-28 07:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles A. Landemaine 2006-07-04 02:57:27 UTC
Version:           1.6.3 (using KDE KDE 3.5.3)
Installed from:    FreeBSD Ports
OS:                FreeBSD

I changed in K Control Center fixed-width fonts to "Monospace", and in fontconfig, I have bind monospace to "Courier New" and to "Nimbus". KDE applications that use fixed-width fonts such as Kate, Kwrite, etc... Are using my fonts because their font is set as "monospace", so if I have the Microsoft fonts installed, I have Courier New, otherwise, if I don't have the Microsoft fonts installed, these applications will use Nimbus instead.

Konsole doesn't take any of these into account because whatever I define in KDE and fontconfig, Konsole still uses Bitstream Vera Sans Mono. Defining "monospace" as default font would solve this problem and Konsole would look like any other KDE application.
Comment 1 Robert Knight 2006-08-07 19:06:03 UTC
Konsole allows you to set the font using Settings > Select Font.

However I agree it would be nice to use the system terminal font by default.
Comment 2 Charles A. Landemaine 2006-08-07 19:08:55 UTC
Yes, I was refering to default font in Konsole. Setting manually the font in Konsole as "Monospace" has been a temporary fix for me so far.
Comment 3 Charles A. Landemaine 2006-08-07 19:14:24 UTC
I forgot, actually you can install the fontconfig XML files to see changes: http://www.ubuntuforums.org/showthread.php?t=208396

This will work with and without the Microsoft fonts as explained in my original message above. These files make KDE consistent, and all applications use the same generic font families. Thus, all applications that are supposed to use a monospace font will use the same monospace font, Nimbus or Courrier New in this case.
Comment 4 Kurt Hindenburg 2006-09-08 18:54:05 UTC
% grep fixedfont * -Ri
konsole.cpp:      QFont tmpFont = KGlobalSettings::fixedFont();
konsole_part.cpp:  QFont tmpFont = KGlobalSettings::fixedFont();
kwrited.cpp:  setFont(KGlobalSettings::fixedFont());
main.cpp:        QFont tmpFont = KGlobalSettings::fixedFont();
main.cpp:          QFont tmpFont = KGlobalSettings::fixedFont();

I had some issues with saving/loading the font in the config files, so I commented out KControl's signal for changing the font.  I think some of the code is still there, but commented out. 

Comment 5 Robert Knight 2007-07-28 07:46:54 UTC
KDE 4 - Fixed, whatever font size is defined in KDE's Font Settings dialog is used, unless a different font has been explicitly chosen in Konsole's profile editor.