Bug 217700 - fixed fonts renders badly in konsole since KDE > 4.3.3
Summary: fixed fonts renders badly in konsole since KDE > 4.3.3
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 2.3.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
: 253775 (view as bug list)
Depends on:
Reported: 2009-12-07 11:57 UTC by Bastiaan Welmers
Modified: 2017-02-13 03:07 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In:

Misc Fixed 11 in 4.4 beta 2 (60.21 KB, image/png)
2009-12-27 06:09 UTC, Grósz Dániel
Misc Fixed 11 in 4.4 beta 2 (now the correct screenshot) (6.22 KB, image/png)
2009-12-27 06:13 UTC, Grósz Dániel
Comparison of konsole 4.4rc1 rendering with other apps (245.79 KB, image/png)
2010-01-23 23:10 UTC, Ivo Anjo
distorted font (260.98 KB, image/jpeg)
2010-03-05 16:46 UTC, H.H.
ttf-inconsolata in use within konsole / KDE SC 4.4.1 (56.86 KB, image/png)
2010-03-07 10:07 UTC, tnemeth
Screenshot of konsole from KDE SC 4.4.2 (64.80 KB, image/png)
2010-04-01 22:54 UTC, tnemeth
Misc console rendering in KDE 4 trunk vs. KDE 3 (602.24 KB, image/png)
2010-06-08 11:40 UTC, András Manţia

Note You need to log in before you can comment on or make changes to this bug.
Description Bastiaan Welmers 2009-12-07 11:57:10 UTC
Version:           2.3.3 (using KDE 4.3.4)
Compiler:          gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]
OS:                Linux
Installed from:    openSUSE RPMs

Fixed width fonts like Fixed Misc or Fixed Console look horrible since KDE 4.3.4 in Konsole. 
It looked good like this :

Since 4.3.4:


It is even not fixed width anymore. It also applies to other 'old' fixed width fonts like Misc Console.
Comment 1 Robert Knight 2009-12-07 13:28:11 UTC
> Fixed width fonts like Fixed Misc or Fixed Console look
> horrible since KDE 4.3.4 in Konsole. 

Konsole can only use fixed width fonts (variable width fonts do not show up in the font selector), so the bug must be more specific than that.
Comment 2 Bastiaan Welmers 2009-12-07 15:22:12 UTC
Well the problem arises when using Misc Fixed or Misc Console fonts. Misc Fixed is available everywhere I suppose, Misc Console i.e. can be found on http://www.welmers.net/~bastiaan/misc_console_medium.pcf.gz

The font already looks bad in the Font Selector example.

Now I see the font looks bad at all in every Font Selector in every KDE application. Probably there's something else wrong and not specificly in konsole. In KDE3 applications on the same session the fonts look OK.
Comment 3 Robert Knight 2009-12-07 19:34:00 UTC
> Probably there's something else wrong and not specificly in konsole.

Could you check how the font displays in a Gtk application?
Comment 4 Bastiaan Welmers 2009-12-08 09:59:17 UTC
In Gimp they are OK, in kde3 applications they are OK.
Comment 5 Grósz Dániel 2009-12-27 06:06:57 UTC
#1: There are some fixed width fonts which (at some sizes) have different widths when regular and when bold. That seems to be the case here.
Comment 6 Grósz Dániel 2009-12-27 06:08:28 UTC
In 4.4 beta 2 it is even worse: although you cannot select Misc Fixed size 11 in the Font Selector dialog, you can select it with the Font size slider; it will look like what I attach.
Comment 7 Grósz Dániel 2009-12-27 06:09:39 UTC
Created attachment 39363 [details]
Misc Fixed 11 in 4.4 beta 2
Comment 8 Grósz Dániel 2009-12-27 06:13:39 UTC
Created attachment 39364 [details]
Misc Fixed 11 in 4.4 beta 2 (now the correct screenshot)
Comment 9 matthias.luebberstedt 2010-01-13 10:16:57 UTC
I had the same thing happening with openSuSE 11.1, KDE 4.3.4 (downloaded and installed from the openSuSE build repository) and qt 4.6.0 (coming from the same source).

The problem affected not only konsole, but also kate. When selecting a font from the font selector that displayed incorrectly, the CPU load of both the aplication itself (i.e. konsole or kate) and the X server drastically increased.

For me, a manual (forced) install of the qt 4.5.3 RPM packages coming with KDE 4.3.4 (i.e. effectively replacing all the qt 4.6.0 packages) fixed the problem.

So my feeling is that it is not so much a konsole-only issue but an incompatibility between qt 4.6 and KDE 4.3, affecting a couple of KDE applications.
Comment 10 Ivo Anjo 2010-01-23 23:10:05 UTC
Created attachment 40170 [details]
Comparison of konsole 4.4rc1 rendering with other apps

I think I'm suffering from this bug too.

I'm using 4.4rc1 on openSUSE 11.1 and the font I always use, "Misc Fixed 11" isn't rendered correctly.
Kfontview, gnome-terminal, konsole from 4.3.4 and gimp all render it correctly.

The attached screenshot shows konsole and some other apps rendering with misc fixed 11.
Comment 11 Roman 2010-02-11 20:10:34 UTC
I recently updated from suse rpms to 4.4 release. the rendering of Misc Fixed also changed for me. Also it is EXTREMELY slow. It takes a couple of seconds to drag the slider that changes font size.

Is this a problem of Qt? http://bugreports.qt.nokia.com/browse/QTBUG-7255
Comment 12 aa29ww 2010-02-14 20:46:09 UTC
*** This bug has been confirmed by popular vote. ***
Comment 13 Kevin Kofler 2010-02-24 17:25:59 UTC
This is almost certainly a Qt issue.
Comment 14 Roman 2010-02-24 18:29:37 UTC
Is this reproducible with Qt trunk?
Comment 15 H.H. 2010-03-05 16:46:05 UTC
Created attachment 41358 [details]
distorted font

this is how konsole looks for me with the font "misc console" on opensuse-11.2 with kde-4.4.0 and qt-4.6.1. Switching between those fonts is very slow. I have this problem at least since kde 4.3.x. No problems in konsole/kde3.
Comment 16 tnemeth 2010-03-07 10:07:25 UTC
Created attachment 41394 [details]
ttf-inconsolata in use within konsole / KDE SC 4.4.1
Comment 17 tnemeth 2010-03-07 10:10:32 UTC
Forgot the comment in #16.

I'm using 4:4.4.1-0ubuntu1~karmic1~ppa1 with the ttf-inconsolata fixed-width
font and the colored output from ls is not good... Just like in vim. Seems
to be related to what was said in comment #5.
Comment 18 Vadym Krevs 2010-03-25 22:48:23 UTC
Same here on openSUSE 11.2 for x86_64 and KDE 4.4.1. No problems until the upgrade from  KDE 4.3.5.
Comment 19 Vadym Krevs 2010-03-31 22:54:31 UTC
It seems that the Qt issue may have been fixed. I've installed a KDE 4.4.2 live cd from
http://ftp5.gwdg.de/pub/opensuse/repositories/KDE:/Medias/images/iso/KDE-Four-Live.x86_64-4.4.1-Build10.30.iso in a VirtualBox image. The fixed width font issues described above were easily reproducable in that image.

Then I've added the Qt46 repo
http://download.opensuse.org/repositories/KDE:/Qt46/openSUSE_11.2/ and updated
to Qt 4.6.3+4.6.20100330 from it. That fixed rendering of fixed width fonts
such as Misc Fixed.
Comment 20 tnemeth 2010-04-01 22:54:24 UTC
Created attachment 42433 [details]
Screenshot of konsole from KDE SC 4.4.2

Unfortunately, this upgrade did not fix the bug as you can see in the
attached screenshot.
Comment 21 Matt Johnson 2010-04-26 09:44:35 UTC
Can confirm that this bug still exists in KDE SC 4.4.2, testing in Kubuntu Karmic (9.10) using the KDE 4.4 backports repository.  Inconsolata and other fixed-width fonts, when bolded, are cut off within Konsole (both in bash and in vim) and Kate.  This makes development somewhat tricky, as many things are bolded by the default syntax highlighter (in C++, for example, literals, comments, and keywords).

I think scrolling through a long string literal in a syntax-highlighted source file in vim would be helpful to diagnose this, for someone more familiar with the internals of Qt or Konsole.  A feeble attempt to describe it: it looks like some code somewhere is miscalculating the size of the bounding box for bolded text.  If I type the lower-case alphabet within a string literal, when I put my cursor on the far left, I can see a-w and the left half of x.  As I move the cursor to the right, I uncover the right half of x, y, z, and the close quote.  Everything to the left of the cursor shows up fine.
Comment 22 Bodo Eggert 2010-05-12 19:34:02 UTC
I've resolved the issue: konsole can obviously not handle space characters in font names. I renamed the "misc console" font to "console", and now I'm happy again.

I used the fontconfig file below to rename the font:

---begin /etc/local.conf---

<match target="font">
 <test name="family">
 <string>Misc Console</string>
 <edit name="hinting">
 <edit name="family">

        <prefer><family>Misc Console</family></prefer>

---end /etc/local.conf---
Comment 23 Bodo Eggert 2010-05-13 14:46:54 UTC
Another possibility to have a wrong font is not having installed the bitmap font  using mkfontdir/mkfontscale/xset fp+.
Comment 24 András Manţia 2010-06-08 11:39:10 UTC
*** Bug 213455 has been marked as a duplicate of this bug. ***
Comment 25 András Manţia 2010-06-08 11:40:20 UTC
Created attachment 47809 [details]
 Misc console rendering in KDE 4 trunk vs. KDE 3
Comment 26 apodtele 2010-06-10 23:58:16 UTC
Kfontview displays these fixed bitmap fonts well 
when you point to a font file for any available size.
Comment 27 Vadym Krevs 2010-07-30 15:00:37 UTC
In response to comment #19: just upgraded to openSUSE 11.3 and Misc Console's rendering is broken again. All Qt-based apps seem to be affected, not just Konsole.
Comment 28 H.H. 2010-07-30 15:24:31 UTC
I can confirm comment #27
Comment 29 Vadym Krevs 2010-09-04 22:33:03 UTC
Same problem on 11.3 with KDE 4.5.1.
Comment 30 Jekyll Wu 2011-08-03 07:07:44 UTC
*** Bug 253775 has been marked as a duplicate of this bug. ***