Bug 296741 - Cursor Spacing is off when using FreeMono medium in Konsole
Summary: Cursor Spacing is off when using FreeMono medium in Konsole
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 2.8.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-25 13:27 UTC by Ronny
Modified: 2012-04-28 14:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
cursor half way into the m (31.93 KB, image/png)
2012-03-25 13:27 UTC, Ronny
Details
another example (this time without smooth fonts) (644 bytes, image/png)
2012-03-25 13:46 UTC, Ronny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ronny 2012-03-25 13:27:27 UTC
Created attachment 69883 [details]
cursor half way into the m

The cursor does not add enough space when typing some characters, like a or m.
Same have the right spacing.

This leads to the behavior that i cannot see my typed text because it is beyond the cursor, but beyond the cursor is just white.

It works with bold and italic free mono.

This is very sad for me because regular freemono is the only bearable mono font.
Comment 1 Ronny 2012-03-25 13:29:35 UTC
I use ubuntu 12.04 beta 

Qt 4.8.0, Konsole 2.8.1 KDE 4.8.1
Comment 2 Ronny 2012-03-25 13:30:57 UTC
I use ubuntu 12.04 beta 

Qt 4.8.0, Konsole 2.8.1 KDE 4.8.1

font is free mono medium 13 or 14
Comment 3 Ronny 2012-03-25 13:46:51 UTC
Created attachment 69884 [details]
another example (this time without smooth fonts)
Comment 4 Jekyll Wu 2012-03-25 14:44:43 UTC
Thanks for reporting.

However, I have trouble with reproducing the reported problem. I guess "FreeMono" refers to this http://savannah.gnu.org/projects/freefont/, or the font shipped by package ttf-freefont in Debian/Ubuntu. The problem is there is no medium style listed when using neither Gtk nor Qt applications. 

So the question is: how did you tell konsole to use "FreeMono medium 13pt"? Did you edit the "Font" entry in your konsole profile on disk manually?
Comment 5 Ronny 2012-03-25 14:58:24 UTC
$ ll /usr/share/fonts/truetype/freefont/
-rw-r--r-- 1 root root  169184 2011-04-30 22:26 FreeMonoBoldOblique.ttf
-rw-r--r-- 1 root root  172860 2011-04-30 22:26 FreeMonoBold.ttf
-rw-r--r-- 1 root root  207412 2011-04-30 22:26 FreeMonoOblique.ttf
-rw-r--r-- 1 root root  343284 2011-04-30 22:26 FreeMono.ttf

I guess it is that lower one (in ubuntu 11.10 it was called "regular" in the choose font dialog)

It is perhaps. just non-bold non-italic.
Comment 6 Ronny 2012-03-25 15:00:35 UTC
konsole -> configure current profile -> tab appearance -> edit font -> choose freemono, choose medium, choose 13
Comment 7 Jekyll Wu 2012-03-25 15:13:47 UTC
OK, thanks for the feedback. So the problematic font style is shown as "regular" in Ubuntu 11.10 and "medium" in Ubuntu 12.04 ?

Whatever, I just checked that font style in Arch, Gentoo, Debian Sid and Ubuntu 11.10. No problem for me. Maybe I should install Ubuntu 12.04 beta in a virtual machine to check it. In the meantime, you can also do similar check to see whether it is a distro-specific problem/regression.
Comment 8 Ronny 2012-03-25 15:18:00 UTC
I already use the same font in the previous kubuntu. (and before that
and before that) it worked (and works today on my other machine).

So it is really something wrong with the newer distribution's versions.

I also tried copying the font from the old kubuntu to the 12.04. made
no difference. So it is probably not the font's fault.

On Sun, Mar 25, 2012 at 5:13 PM, Jekyll Wu <adaptee@gmail.com> wrote:
> https://bugs.kde.org/show_bug.cgi?id=296741
>
> Jekyll Wu <adaptee@gmail.com> changed:
>
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             Status|NEEDSINFO                   |UNCONFIRMED
>         Resolution|WAITINGFORINFO              |---
>
> --- Comment #7 from Jekyll Wu <adaptee@gmail.com> ---
> OK, thanks for the feedback. So the problematic font style is shown as
> "regular" in Ubuntu 11.10 and "medium" in Ubuntu 12.04 ?
>
> Whatever, I just checked that font style in Arch, Gentoo, Debian Sid and Ubuntu
> 11.10. No problem for me. Maybe I should install Ubuntu 12.04 beta in a virtual
> machine to check it. In the meantime, you can also do similar check to see
> whether it is a distro-specific problem/regression.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
Comment 9 Christoph Feck 2012-03-26 11:47:37 UTC
As can be clearly seen in the screen shot, the advance value for "m" is bigger than the advance value for the "a", which means the font is not really mono spaced. All advance values should be identical, as it would be too slow to find the largest of all of them.
Comment 10 Ronny 2012-03-26 14:53:52 UTC
I downloaded FreeMono again (from the interwebs) and installed it, and
rebuilt the font cache.
Same behaviour. I find it hard to believe that the font might not be monospaced.

Perhaps it has something to do with font smoothing. (turning it off
and on gives different results in spacing)
Comment 11 Ronny 2012-03-27 10:34:29 UTC
After some more fiddling, installing otf-freefont (there is an otf
version of FreeMono in it)

and fc-cache. It works now. FreeMono looks good. And the spacing is
not off anymore.

I dont have a clue why it works. But it does.

(In the meantime I installed consolata and fiddled with another bug in
yakuake, so I cannot really say what the steps were to make it work)