Konsole displays bold text with normal weight

Bug #972279 reported by Graeme Hewson
52
This bug affects 10 people
Affects Status Importance Assigned to Milestone
konsole (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After upgrading from Oneiric to Precise Beta 2, I found that Konsole would not display bold text as such, but would display the text with the normal weight, unless I used a particular font setting. To reproduce, execute this line; the word "bold" should be in bold.:

echo "`tput sgr0`this is `tput bold`bold`tput sgr0`"

This is with the Black on White scheme, which uses the "bold" flag for the intensive foreground colour -- see /usr/share/kde4/apps/konsole/BlackOnWhite.schema. Note that the default Linux Colors scheme does not use the "bold" flag -- see /usr/share/kde4/apps/konsole/.

I found that with Ubuntu Mono Regular, size 11.0, Konsole does display bold text correctly, with the default "Draw intense colours in bold font" box ticked.

Using the size slider in the Edit Profile / Appearance tab to alter the size from 11.0 keeps the text displaying correctly, but going into Edit Font and clicking on a different size causes bold text to revert to normal weight. I have not found any other font/style/size combination which works, and in particular the default Monospace font doesn't work correctly.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: konsole 4:4.8.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
Uname: Linux 3.2.0-21-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.0-0ubuntu3
Architecture: amd64
Date: Tue Apr 3 09:50:54 2012
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/konsole
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: konsole
UpgradeStatus: Upgraded to precise on 2012-03-30 (4 days ago)

Revision history for this message
Graeme Hewson (ghewson) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in konsole (Ubuntu):
status: New → Confirmed
Revision history for this message
harno (harno) wrote :

after tweaking around in the graphical profile configuration dialogues without much success i found the autogenerated .colorscheme file for my current profile in .kde/share/apps/konsole, in my case 'WhiteOnBlack.colorscheme'
after setting the 'Bold' parameters of the 'Intense' color entries there to 'true' and restarting konsole it works as expected at least for my font/size for now. couldn't get it to work with Monospace either.

.kde/share/apps/konsole/Shell.profile:
[Appearance]
AntiAliasFonts=true
BoldIntense=true
ColorScheme=WhiteOnBlack
Font=DejaVu Sans Mono,9,-1,5,50,0,0,0,0,0

Revision history for this message
bq (balique) wrote :

This bug has wider impact, Kate is not highlighting keywords in C program in bold when using the monospace font - which is the default. I use 12.04

Revision history for this message
Vincent Hugot (vincent-hugot) wrote :

This bug still exists in 4.9.1 (kubuntu+ppa).

#4 : the problem with Kate may be unrelated; keyword highlighting in Kate works fine for me, whether in 4.8 or 4.9.

Revision history for this message
Pascal Korz (kelhim) wrote :

The cause and the solution for this problem might be described here:
http://askubuntu.com/questions/135003/kde-fonts-not-rendering-bold-in-ubuntu-12-04

It fixed the problem for me, but I don't remember when it first occurred.

Revision history for this message
Graeme Hewson (ghewson) wrote :

The bug is still present in Quantal Beta 2, but has changed. I did a clean install and applied all current patches.

Now, out of the fixed width fonts available for selection in Konsole, only Monospace correctly displays bold text in the black on white schema; this is in all sizes. The other fonts (Courier 10 Pitch, DejaVu Sans Mono, FreeMono, Liberation Mono, Tlwg Typo, TlwgMono, Ubuntu Mono) don't display bold text correctly (i.e., they display it with a normal weight).

tags: added: quantal
removed: precise
Revision history for this message
Graeme Hewson (ghewson) wrote :

It seems I spoke too soon. If you go to the Select Font dialogue and change the font and/or size, all instances of Konsole update to the selected font/size while the dialogue is open, but sometimes, and sometimes not, bold text isn't displayed as bold. When you save the changed font, the current instance acts in the same way as when the dialogue was open. However, if you start a new Konsole instance by entering "konsole" in the previous instance, the new instance correctly displays bold.

I'm not sure if this was the case or not when I opened the report, but the problem is much less severe than I thought. The problem now is that the new setting doesn't apply to the current instance. It does eventually apply to new instances. When clicking on an icon in the panel, the new setting takes effect after the current instance (where you opened the dialogue) has been closed.

TL;DR: Changing the font setting causes bold text not to be displayed for a while.

Revision history for this message
Vincent Hugot (vincent-hugot) wrote :

[4.9.2 (kubuntu+ppa)] The solution in #6 fixed the problem for me as well (I used the local ~/.fonts.conf version).

Revision history for this message
Graeme Hewson (ghewson) wrote :

The problem has moved to a different font. I'm testing with a clean install of Kubuntu 12.10 with current updates.

As before, the problem occurs with the Black on White schema, and not the default Linux schema. In fact, it occurs with most schemas in /usr/share/kde4/apps/konsole, the only other exception being Solarized. The essential difference is that where the problem occurs, there is "Bold=true" in the [ForegroundIntense] section. All schemas now use .colorscheme configuration files; before, BlackOnWhite used a .schema configuration file, which has a different syntax.

Now, out of the available fonts, only Monospace (the default) correctly displays bold characters, and it does so at any size. Ubuntu doesn't display bold characters correctly, not at 11pt or at any other size. Nor do any of the other available fonts display bold correctly.

This might be related to bug 744812 "FontConfig/Qt stack choke on Ubuntu Medium font meta-data (No medium in Inkscape and too bold in Qt apps)".

Revision history for this message
JamesL (jamesly0n) wrote :

I've just run into this problem (again, usually I just changed the font in Kate). The link in comment #6 seems to be the key, and the package responsible is fonts-droid, which causes the default monospace font to change from DejaVu Sans Mono to Droid Sans Mono which indeed doesn't support bold. I tried uninstalling the package but it's a dependency of texlive-full. The fix would appear to be to lower the priority of the droid fonts but I don't know what else that depends on.

I'm running 12.04, but at this point it's rather a horrible hybrid so my install doesn't really count for bug reporting purposes; I'm running both the kubuntu-ppa and texlive-backports repos.

Revision history for this message
hakon (hakon-hagland) wrote :

I have this problem also. I am using konsole version 2.13.2 on KDE version 4.13.3 ( Ubuntu version 14.04). Regarding the comment in #6: there is no file "60-droid-sans-mono-fonts.conf" on my system. None of the other suggestions helped either.. If I open a gnome-terminal and type

echo `tput bold`bold`tput sgr0`

it works fine (I get bold text) but it does not work in konsole..

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.