Bug 159037 - Ensure default font is monospace
Summary: Ensure default font is monospace
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Robert Knight
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-09 19:46 UTC by Vitor Boschi da Silva
Modified: 2008-06-02 10:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
I haven't typed any spaces at the line (15.44 KB, image/png)
2008-03-09 20:02 UTC, Vitor Boschi da Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitor Boschi da Silva 2008-03-09 19:46:31 UTC
Version:            (using KDE 4.0.2)
Installed from:    Ubuntu Packages
OS:                Linux

When you start konsole, looks like the cursor is one character to the left of where it should be. If you use the cat command and use tabs at the text, the cursor goes far away from the correct position. The characters however are displayed at correct position.
Comment 1 Vitor Boschi da Silva 2008-03-09 20:02:48 UTC
Created attachment 23841 [details]
I haven't typed any spaces at the line
Comment 2 Vitor Boschi da Silva 2008-03-09 20:05:24 UTC
You don't need to use tabs to see the bug. Any character moves the cursor a bit more than it should (look at the attachment 23841 [details]). Looks like the bug is more visible when the font size is bigger.
Comment 3 Robert Knight 2008-03-09 20:11:36 UTC
Hello,

What font are you using?  It looks like the font isn't fixed-width.  
Comment 4 Vitor Boschi da Silva 2008-03-09 20:21:10 UTC
I'm using Andale Mono size 12. It's the default font.
Comment 5 Vitor Boschi da Silva 2008-03-09 20:46:02 UTC
Sorry... I think the font was called ae_AlArabiya, size 12. I've changed it to Andale Mono and the problem was fixed. The weird thing is that ae_AlArabiya isn't displayed in the console font selector, but it is at the system panel.
Comment 6 Robert Knight 2008-03-09 20:50:30 UTC
> The weird thing is that ae_AlArabiya isn't displayed
> in the console font selector

The font selector only shows fixed-width fonts, ae_AlArabiya isn't.  I don't know why it shows up in system settings.

In any case, Konsole should check the default font to make sure that it is a monospace font before using it.
Comment 7 Robert Knight 2008-03-18 16:16:42 UTC
SVN commit 787054 by knight:

Print a warning to the terminal if the display's font is set to a font which is not fixed-width.

CCBUG: 159037


 M  +5 -0      TerminalDisplay.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=787054
Comment 8 Robert Knight 2008-06-02 10:30:00 UTC
Closing as fixed after the change in comment #7