Bug 121672 - Add option to select "Any" font
Summary: Add option to select "Any" font
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.6
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-09 22:12 UTC by Tim Gokcen
Modified: 2013-03-21 20:45 UTC (History)
3 users (show)

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 Tim Gokcen 2006-02-09 22:12:41 UTC
Version:           1.6 (using KDE KDE 3.5.1)
Installed from:    Debian testing/unstable Packages
OS:                Linux

It seems like a lot of people are having issues being able to pick the fonts they want.

I can understand the rationale behind only listing fixed-width fonts in the Konsole fonts menu in 1.6 - after all, only fixed-width fonts are going to look good.

However, it seems like the tricky part is getting Konsole to recognize a given font *as* fixed-width. The fault might be with Konsole; the fault might be with Xft/fontconfig, or with the the configuration thereof, or the fault might lie with the font itself.

It seems like the basic KDE font installation system in the Control Center works well and a simple way around the headache of getting one's favourite font to show up in the Konsole font list would be to just add a little checkbox at the bottom of the Font selection box with the description "Show all fonts"

If unchecked (default, current behaviour), only those fonts that Konsole recognizes as being fixed-width will be shown in the list. If checked, then all fonts known to KDE will be shown, with no guarantees being made about their suitability as konsole fonts.

I think this would simplify some peoples' lives and make it so that they don't have to root through documentation for various font subsytems.
Comment 1 Thiago Macieira 2006-02-10 23:13:17 UTC
I don't agree. Konsole may depend on the font being fixed-width in order to repaint the window properly (imagine repainting only portions).

I've see this happen with Emacs: the font wasn't completely fixed-width (or was reporting the wrong width), so editing text was simply impossible because the cursor was far away from where the text was. And typing simply garbled what was being shown.

So, no, this should not be a GUI feature. If you need to choose a font that isn't listed, you should edit the configuration file to select that font. In that, I agree, Konsole should accept the font that is in the config and not check if it's fixed-width.

(Then again, imagine upgrading and a font changing from monospace to variable-width...)
Comment 2 Robert Knight 2006-08-08 06:16:53 UTC
Definitely need to do something about this other than tell users "edit the configuration file"
Comment 3 furue 2007-07-19 09:28:50 UTC
I understand that only fixed-width fonts work with konsole, but I still want konsole to have an option to select any font, because there are cases where konsole doesn't recognize fixed-width fonts as such:

  http://lists.kde.org/?l=konsole-devel&m=115500814300427&w=2

A case in point is the "kappa 20-dot font", which is a fixed-width font, and I've been using this font on emacs for years.  As mentioned in the posting cited above, this may indeed be a bug on the part of the font.  I submitted a bug report to the author of the font but haven't heard anything from him. (The font is very old and the author may not be active any longer.)

In such a case, it doesn't matter whose bug this is.  The fact remains that a potentially useful font cannot be used on konsole while it is used on other terminal programs.
Comment 4 Robert Knight 2007-07-20 18:53:23 UTC
Fixed in KDE 4.  Konsole defaults to the Monospace font but won't stop you from trying to pick a non-fixed-width font.
Comment 5 doc.evans 2010-01-18 23:01:04 UTC
I'm using KDE 4.3 and I don't see any way to pick a non-fixed-width font. 

In my case, I want to use Monaco, which is fixed-width but (like other examples cited in this report) it doesn't appear in the drop-down list for konsole. So therefore presumably konsole thinks, for whatever reason, that it's not a fixed-width font. But I can't see any way to select a font other than through the drop-down list of fonts that konsole believes to be fixed width.

So if this has been fixed in KDE4, it's not in a way that's obvious to the user.
Comment 6 Robert Knight 2010-01-19 15:41:13 UTC
Hello - You can edit the .profile file with a text editor to specify a non-fixed width font.

However I do not think it is a good idea to add a GUI option for this since Konsole's rendering does not properly support variable width fonts.  In the case you mentioned where what appears to be a fixed width font does not show up then that needs to be investigated and if necessary the selection criteria for fonts can be changed.  Right now Konsole relies on Qt's font inspection facilities.
Comment 7 doc.evans 2010-02-08 17:34:00 UTC
(In reply to comment #6)
> Hello - You can edit the .profile file with a text editor to specify a
> non-fixed width font.
> 

I'm sorry, but this doesn't seem to work.

I created a profile and manually edited the Appearance section to read:
[Appearance]
ColorScheme=WhiteOnBlack
Font=Monaco,9,-1,5,50,0,0,0,0,0

(I have no idea what all those numbers mean on the "Font" line; I just left them the way they were -- I can't find any documentation on what those numbers mean).

However, switching to the profile once I have made this change does not cause the Monaco font to be used.

So either here is some non-obvious (and apparently undocumented) trick to editing the profile which you forgot to mention, or your suggested workaround simply doesn't work :-(
Comment 8 Robert Knight 2010-02-08 18:09:51 UTC
You may need to close all existing Konsole windows and then re-open them after changing one of the profiles manually outside of Konsole.  Alternatively, launch the new Konsole window by typing 'konsole' in that window.
Comment 9 doc.evans 2010-02-15 16:24:02 UTC
Thank you; typing "konsole" in an existing konsole did the trick.
Comment 10 yo 2013-03-21 20:45:54 UTC
Kind of sucks that you'd have to go to the console to do this (no pun intended). But works like a charm!