Bug 284365 - Wrong alignment with Terminus font
Summary: Wrong alignment with Terminus font
Status: RESOLVED DOWNSTREAM
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.7.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-18 14:08 UTC by Dmitry Melnik
Modified: 2011-11-05 22:36 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Melnik 2011-10-18 14:08:21 UTC
Version:           2.7.1 (using KDE 4.7.1) 
OS:                Linux

When selecting Terminus font, the width and alignment of some characters is different depending on whether it's under cursor or not.

Here's the similarly looking bug reported in KUbuntu mailing lists: http://markmail.org/thread/rmorpswifq5zf4xf
I'm not sure if this is the same problem, but it doesn't seem to be forwarded upstream anyway.


Reproducible: Always

Steps to Reproduce:
Set Terminus 11 font, write a line containing "thin" characters like "i" (e.g. aiaiaiaiaiaiaia) and move the cursor throgh the line. 

Actual Results:  
You will note that the right end of the line is "trembling" as cursor moves.

Expected Results:  
Right end of the line should stay in place, like it happens with standard shipped fonts.
Comment 1 Jekyll Wu 2011-10-26 09:04:42 UTC
Thanks for reporting. But I failed to reproduce or notice any of the mentioned problems: wrong alignment by 1px, shiftling line when moving cursor or selecting text.
Comment 2 Dmitry Melnik 2011-10-26 09:10:59 UTC
Hmmm... I have it on Kubuntu after upgrade to 11.10.
Comment 3 Stefan Michalowski 2011-10-26 16:57:09 UTC
I have the same problem after upgrading to Kubuntu 11.10. I am using the nouveau open-source Nvidia driver, it may be related to that.
Comment 4 Francesco Cecconi 2011-10-26 17:25:48 UTC
I failed to reproduce this bug on debian, with konsole 2.7.2 and steps suggested.
Comment 5 Jekyll Wu 2011-10-26 20:01:25 UTC
My previous failed attempt was on ArchLinux. I just tried it with Ubuntu 11.10 in a real machine(using driver from nvidia) and Kubuntu 11.10 in virtualbox, but still failed to reproduce or notice the problem. Both cases were using totally brand new and clean accounts.

Could you please check whether the problem is reproducible when using a new account with clean configuration?
Comment 6 Stefan Michalowski 2011-10-26 20:38:35 UTC
Verified with a new profile, there is no 11pt for the Terminus font. xfontsel with old profile also shows that there is not 110 point size for the Terminus font.
Comment 7 Stefan Michalowski 2011-10-26 20:39:00 UTC
Changing the font size to 12pt solve the issue.
Comment 8 Jekyll Wu 2011-10-26 22:00:24 UTC
(In reply to comment #5)

[correction]

It turned out my Kubuntu 11.10 in virtualbox was a bit outdated(using KDE-4.7.1). After upgrading a few packages(using KDE-4.7.2), I finally noticed the problem. The strange thing is the problem does not exist in my up-to-date Ubuntu using GNOME.

I think this looks more like a downstream problem, because between 4.7.1 and 4.7.2 konsole does not contain commit that change how things are rendered.
Comment 9 Dmitry Melnik 2011-10-28 13:37:04 UTC
It doesn't allow me to select 12pt on "Appearance" tab in Konsole, but the problem persists as well with 10pts and 13pts.
Comment 10 Jekyll Wu 2011-10-29 19:23:12 UTC
Well, I also tried this later on fedora, gentoo and sid, but they didn't have this problem. 

So to sum up my observation:

1). it happens only in (k)ubuntu. arch/gentoo/fedora/sid do not have this problem
2). it happens only with 11pt, 14pt and 17pt. 
3). (k)ubuntu and sid ship terminus-4.35, while other distros ship terminus-4.36.

It looks like a downsteram problem with high probability.
Comment 11 Vadim Pilipenko 2011-11-02 11:53:32 UTC
I solved this problem (for me, in kubuntu 11.10) with next steps:

1. remove packages with terminus fonts
sudo apt-get purge xfonts-terminus xfonts-terminus-oblique

2. create directory for downlad/unpack font
cd ~
mkdir -p terminus
cd terminus

3. download terminus font v. 4.36-1
wget -c http://ftp5.gwdg.de/pub/linux/archlinux/community/os/i686/terminus-font-4.36-1-any.pkg.tar.xz

4. unpack archive
tar -xxf terminus-font-4.36-1-any.pkg.tar.xz

5. copy fonts to system
sudo cp -r usr/share/fonts/local/* /usr/share/fonts/X11/misc/
tar -xxf terminus-font-4.36-1-any.pkg.tar.xz

6. Restart X session (logout and logon), or reboot system.