Bug 215937 - Cursor spacing and alignment wrong
Summary: Cursor spacing and alignment wrong
Status: RESOLVED LATER
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.3.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-24 10:15 UTC by Jonathan Gardner
Modified: 2015-12-21 13:03 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Cursor is far to the right of where it should be (27.53 KB, image/png)
2009-11-24 10:18 UTC, Jonathan Gardner
Details
When I move to the left, the text on the right is also out of alignment (27.69 KB, image/png)
2009-11-24 10:19 UTC, Jonathan Gardner
Details
konsole cursor bug (also shows slidebar and allowed font sizes) (40.29 KB, image/png)
2010-03-24 08:10 UTC, Jose Da Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Gardner 2009-11-24 10:15:51 UTC
Version:           2.3.2 (using KDE 4.3.2)
OS:                Linux
Installed from:    Fedora RPMs

The further right I am in Konsole, the more out of alignment the cursor is.

To reproduce, type in a long list of characters, such a "aaaaaaaaaaaaaaaaaaaaaaaaaa". Note how the cursor moves farther and farther out of alignment.

I'm going to try and attach screen shots.
Comment 1 Jonathan Gardner 2009-11-24 10:18:40 UTC
Created attachment 38536 [details]
Cursor is far to the right of where it should be

This shows how the cursor has moved to the right as I typed in a bunch of 'a's.
Comment 2 Jonathan Gardner 2009-11-24 10:19:37 UTC
Created attachment 38537 [details]
When I move to the left, the text on the right is also out of alignment

When I move to the left, the text on the right is also out of alignment. Perhaps this is because the cursor is getting fatter the further to the right it is?
Comment 3 Robert Knight 2009-11-24 13:04:47 UTC
Which font are you using? (family, size, style)
Comment 4 Jonathan Gardner 2009-11-24 20:09:34 UTC
I'm using Liberation Mono. This affects multiple font sizes, at least between 9 and 11pts. I tried Lucida Typewriter as well with similar results.
Comment 5 Jonathan Gardner 2009-11-24 20:10:26 UTC
Font styles were plain for the above.
Comment 6 khotyanovsky 2009-12-21 19:04:38 UTC
Confirmed on Arch. The cursor if off. Konsole is broken.
Please raise the severity of this bug.
Comment 7 khotyanovsky 2009-12-21 19:12:54 UTC
No, seriosly, the Konsole is a core system component. Not a plasma kind of stuff. I would recommend to raise it to "Critical".
Comment 8 Matthew Woehlke 2009-12-24 01:52:01 UTC
Being dramatic will not help (in fact it tends to annoy developers). "Critical" is defined as "crashes, loss of data, severe memory leak". You are describing a graphical glitch that IMO doesn't count as even "major", and clearly is not "critical". Nor is Konsole "a core system component" to most people.

What happens with a bitmap font?

(Also... I suspect the problem here actually lies below Konsole, in Qt's font rendering, which may be a problem in Qt, or perhaps even in something below Qt.)

And... it works for me (with Liberation Mono even, as well as Terminus which I normally use).
Comment 9 Robert Knight 2009-12-24 19:58:28 UTC
> Nor is Konsole "a core system component" to most people.

A terminal is important to a lot of technical users.  I agree that this is not 'critical' though because the number of reports/confirmations is small and it appears to relate to certain setups only (perhaps certain fonts, distributions, versions of libraries etc.).

@Jonathan, khotyanovsky@mail.ru

As I cannot reproduce this myself, I need you to experiment and see if you can track down what combinations of font/size or something else cause the problem.
Comment 10 Jonathan Gardner 2009-12-24 21:08:37 UTC
Alright, I'll get on it.

On Thu, Dec 24, 2009 at 10:58 AM, Robert Knight <robertknight@gmail.com> wrote:
> https://bugs.kde.org/show_bug.cgi?id=215937
>
>
>
>
>
> --- Comment #9 from Robert Knight <robertknight gmail com>  2009-12-24 19:58:28 ---
>> Nor is Konsole "a core system component" to most people.
>
> A terminal is important to a lot of technical users.  I agree that this is not
> 'critical' though because the number of reports/confirmations is small and it
> appears to relate to certain setups only (perhaps certain fonts, distributions,
> versions of libraries etc.).
>
> @Jonathan, khotyanovsky@mail.ru
>
> As I cannot reproduce this myself, I need you to experiment and see if you can
> track down what combinations of font/size or something else cause the problem.
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 11 Jonathan Gardner 2009-12-24 21:18:24 UTC
OK, it affects various sizes of the Liberation Mono, sizes 10 through 7 or so. (Why didn't I try this before?)

Other fonts are not affected.

This is apparently a problem with the font or the font rendering system, and not Konsole.

Is there additional information that may be useful, such as how the fonts are configured or what file, exactly, the font is?
Comment 12 khotyanovsky 2009-12-26 16:03:57 UTC
It affects Monospace, FreeMono and Liberation Mono on my system.
Andale Mono, Courier, Courier New, DejaVu Sans Mono are apparently unaffected.

Matthew Woehlke, I agree it is not really that critical. 
I by no means wanted to annoy developers. 
I was just really mad trying to issue a long command on a remote server with pipelines, sed expressions, having no idea what character my cursor is positioned at. 
Sorry, if I was harsh.
Comment 13 Marius Cirsta 2010-01-23 16:01:06 UTC
 I'm getting this bug using Terminus , size 12. Using KDE 4.4 RC2. This seems and important bug to me.
Comment 14 Jose Da Silva 2010-03-24 08:04:43 UTC
This problem was appearing in KDE 4.3 which came with Mandriva 2010.0 but it is also appearing in KDE 4.4 which is in Mandriva 2010.1a3. there is currently a bug listed on the Mandriva buglist as bug 57564 ( https://qa.mandriva.com/show_bug.cgi?id=57564 ).

If you play around with the font sizes, you can make the problem appear and disappear, for example, the default install I had was "Fixed, font=12" but changing the font to 11 appeared to work okay. In the Mandriva bug, someone mentioned fractions of integers as a possible path to a problem or a solution... maybe something to look into?????

I've also noticed that the slider bar is capable of choosing non-existing fonts, so this may also be something to look at (limiting the output of the slider bar to show only existing fonts allowed).. I'll attach a picture showing the slider bar with font=12.
Comment 15 Jose Da Silva 2010-03-24 08:10:45 UTC
Created attachment 42223 [details]
konsole cursor bug (also shows slidebar and allowed font sizes)

Picture is in grayscale to keep within attachment size limit, but you could see the cursor location as you move back into a line of text, for example if you typed...
ls -l /usr/share/bin/ {cursor now 1 char further right than before}
and then you begin to move your cursor back.... you see the shift.

If you have trouble seeing this on your konsole, try to change font size.
Comment 16 Ahmad Samir 2010-03-25 15:13:31 UTC
To comment#14:
AFAICS this bug doesn't exist in Mandriva 2010.0 at all, the bug surfaced after updating to fonts-ttf-liberation-1.05.2 in cooker, while 2010.0 has fonts-ttf-liberation-1.04 . In Mandriva Fixed is aliased via fontconfig to Liberation Mono, IIUC.
Comment 17 Nicolas L. 2010-04-07 10:13:53 UTC
Robert do you have some infos about this bug ?   i still experience it under kde 4.4.2 / qt 4.6.2
Comment 18 Robert Knight 2010-04-07 11:03:53 UTC
No, I'm afraid I haven't looked into it any further yet.
Comment 19 Nicolas L. 2010-05-17 23:08:57 UTC
Robert, can you take a look here : https://qa.mandriva.com/show_bug.cgi?id=57564#c64

i don't know at all if this is a correct way to fix the bug.

What do you think about this ?
Comment 20 Robert Knight 2010-05-18 00:40:10 UTC
Hi Nicolas,

> Robert, can you take a look here :
> https://qa.mandriva.com/show_bug.cgi?id=57564#c64
> i don't know at all if this is a correct way to fix the bug.

As the author of the patch says, it is a proof-of-concept hack, it is not something that can be included upstream yet.

One thing I can say regarding the last comment in that thread:

>  This should affect only konsole, and should be a better fix then
> the other possible one that would be to draw character by character...

Drawing a character at a time would probably be extremely slow.
Comment 21 fischer-michael 2010-07-11 18:26:46 UTC
I can confirm that font spacing problems are still present in konsole 2.4.3 under KDE 4.4.4, Fedora 13 distribution.  They are very apparent using Liberation Mono 11pt.  In particular, a string of 10 minus signs takes about the same screen width as 9 'x'-characters.  The problems disappear with DejaVu Sans Mono 11pt.  The problem does not affect gnome-terminal, which renders Liberation Mono 11pt correctly, as does OpenOffice.  So the problem does seem to lie in konsole or in the rendering libraries that it uses.
Comment 22 Jekyll Wu 2011-08-03 05:22:16 UTC
(In reply to comment #21)
> I can confirm that font spacing problems are still present in konsole 2.4.3 under KDE 4.4.4, Fedora 13 distribution.  

I tried Liberation Mono 11pt in KDE-4.7.0 but did not notice the problem. Maybe you should upgrade your distribution? 4.4.4 is a bit old.

Or, maybe this is fontconfig related. I use slight hint.
Comment 23 fischer-michael 2011-08-03 20:03:16 UTC
This problem seems to have been fixed over the last year.  I am now running Konsole 2.6.4 using KDE platform 4.6.5 under Fedora 15.  I am happy to report that Liberation Mono 11pt now renders correctly and looks great!
Comment 24 NMD 2015-04-28 16:55:58 UTC
Can confirm this is still here in 4.14.2, Debian Jessie.
Comment 25 Oliver Kurz 2015-12-21 13:03:53 UTC
I usually encounter this problem when my font preference for a bitmap font can not be fulfilled by the system, e.g. I prefer "terminus" and have this selected. If starting konsole on a system that does not have this font, the observed problem also appears for me. It looks konsole (or the X font component) is improperly replacing the missing font with some weird broken selection.

Solution: Install the missing font OR select a different one.