Bug 213857 - Bold text in konsole is cut off
Summary: Bold text in konsole is cut off
Status: RESOLVED INTENTIONAL
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.3.3
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-09 16:50 UTC by Peter Ruskin
Modified: 2015-12-08 16:22 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Inconsolata font in konsole from KDE 4.4 (462.81 KB, image/png)
2010-03-04 22:28 UTC, boski_cinek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Ruskin 2009-11-09 16:50:14 UTC
Version:           2.3.3 (using 4.3.3 (KDE 4.3.3), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.31-gentoo-r4

My prompt is [15:35 root@nero ~] but it displays as [15:35 root@ner~].  Similarly, ls -l /dev/sr* gives:
brw-rw-rw- 1 root cdrom 11, 0 05 Nov 2009 09:26 /dev/sr
brw-rw-rw- 1 root cdrom 11, 1 05 Nov 2009 09:27 /dev/sr
Comment 1 Christoph Feck 2009-11-10 14:34:04 UTC
Which font do you use? Does this problem show with every font?
Comment 2 Peter Ruskin 2009-11-10 15:09:41 UTC
Not with every font - just my favourite (Luxi Mono 13).
Comment 3 Christoph Feck 2009-11-10 16:03:10 UTC
Luxi Mono has different widths for regular vs. bold style. I have tried other fonts, and only Luxi Mono shows this behavior.

Konsole uses fixed size cells, it does not support proportional fonts. It would be possible to set the cell size to that of the bold style, but this would mean that there are blank gaps in regular text, as Konsole does not render characters individually.

I see no way how this could be fixed. You could delete the bold variants (files luximb*.ttf) to work around this problem.
Comment 4 Robert Knight 2009-11-10 19:23:07 UTC
I'm not sure if this might help: http://linux.derkeiler.com/Newsgroups/comp.os.linux.misc/2006-11/msg00262.html

> It would be possible to set the cell size to that of the bold style, but
> this would mean that there are blank gaps in regular text,
> as Konsole does not render characters individually.

This is true, although I'm not sure if it is possible to artifically set the width of characters using fontconfig (see above), although this will change the rendering output.
Comment 5 Peter Ruskin 2009-11-11 12:16:35 UTC
Thanks Robert.  I tried the tip in that link, with the following result:
# fc-list "Luxi Mono" : family style spacing
Luxi Mono:style=Bold:spacing=100
Luxi Mono:style=Bold
Luxi Mono:style=Regular:spacing=100
Luxi Mono:style=Oblique:spacing=100
Luxi Mono:style=Bold Oblique
Luxi Mono:style=Bold Oblique:spacing=100

However, the font still won't show in selection boxes, either in kde-3.5.10 or 4.3.  Furthermore, when I manually entered Luxi Mono in the konsole config file, it displays cut-off as before, although in kde-3.5.10 it displays fine.
Comment 6 boski_cinek 2010-03-04 22:28:44 UTC
Created attachment 41337 [details]
Inconsolata font in konsole from KDE 4.4

Hi!
I have exactly the same problem with Inconsolata font (http://www.levien.com/type/myfonts/inconsolata.html). It worked perfectly fine in KDE 4.3.4, but after yesterday upgrade to 4.4 bold text is cut off (see the attachment). Please, oh please, fix this regression. I've got used to this awesome font, but with 4.4.1 it become unusable for me:/.
Comment 7 Pedro Lobo 2010-04-07 14:07:15 UTC
I can confirm this behaviour in KDE SC 4.4.2 wich Droid Sans Mono.

Any update or workaround?
Comment 8 pchidamb 2010-04-21 00:26:02 UTC
Why is this issue resolved ? What is the resolution/work around? Its kind of ugly of Konsole to not be able to display bold fonts correctly. Atleast konsole should have a way of disabling bold fonts altogether.

I am seeing this most mono fonts on Konsole. KDE 4.4.2/Qt 4.6 on Ubuntu 9.10
Comment 9 Tom Schumm 2010-05-02 19:36:45 UTC
*** This bug has been confirmed by popular vote. ***
Comment 10 Rajeesh K V 2010-06-20 16:03:59 UTC
I have been using Luxi Mono fonts for quite a long time, and some time (years) back when Konsole doesn't recognize it anymore, I sought the help of aseigo. With his help I created the corresponding fontconfig rules to make assign correct spacing and Konsole/KDE apps started to recognize the font.

Now with KDE 4, I've been experiencing the issue of bold texts being cut off, and found no solution/workaround.

I'm glad to help in anyway I can, but I don't know the code well around Konsole. any pointers, help is really appreciated.
Comment 11 uli_rgbg 2015-07-25 04:06:39 UTC
Problem also exists in Kubuntu 15.04, KDE 5.0.9. 2015 -- 6 Years after first encounter. Epic fail!
Affected Fonts:
- Inconsolata
- Free Mono
Comment 12 Thomas Kolar 2015-12-08 16:22:26 UTC
I just ran into this bug with inconsolata as well.

There is a simple workaround that I discovered: In the profile editor, in the "Appearance" tab, there is a "Draw intense colors in bold font" option. Deactivating it fixed the problem for me, although I'll probably run into it again once I have actual bold output somewhere; still, this might be useful as an easy fix, I'm going with it for now.