When using liberation-mono version 2.0, or the inconsolata font (and possibly other monospace fonts) the spacing is wrong and leads to display errors. (I'm attaching screenshots of pressing a sequence of d's that moves the curser too far out). This does not happen in other kde applications such as kate. Reproducible: Always Steps to Reproduce: 1. Install inconsolata font 2. select it as the font in console 3. fill the screen with text Actual Results: Display errors.
Created attachment 73356 [details] one d
Created attachment 73357 [details] some d's
Created attachment 73358 [details] many d's
Adding downstream bug to URL.
I guess this is a problem in the font. It probably advertises itself as a monospaced, i.e. all characters having the same advance width, but they aren't all the same. Can you attach the font?
Created attachment 73366 [details] inconsolata font that has the problem (with 'l')
Created attachment 73367 [details] liberation -> Problem on the 'd' (but not 'l')
(In reply to comment #5) > I guess this is a problem in the font. It probably advertises itself as a > monospaced, i.e. all characters having the same advance width, but they > aren't all the same. > > Can you attach the font? I attached two that have the problem on different letters. Inconsolata with l, and liberation with d (as in the screenshots.)
Cannot reproduce on my system, both fonts work fine in multiple sizes I tried. KDE 4.9.0, Qt 4.8.2, freetype 2.4.9, xdyinfo: resolution: 96x96 dots per inch Could you compile the attached FontTest program using qmake -project && qmake && make and attach its generated "fonttest.txt" output when run using ./FontTest 2> fonttest.txt if possible?
Created attachment 73374 [details] FontTest Qt source
Created attachment 73376 [details] result of font test I'm also on 96x96 dpi
Thanks. On your system, Qt indeed returns different widths for different characters (the first "w" value). This could be a Qt bug, or a fontconfig/freetype bug. Konsole cannot be blamed for this. If the Qt font database indicates the font is monospaced, then Qt should not return different widths. Please report this issue to the bug tracker of the Qt project via https://bugreports.qt-project.org/ A workaround in Konsole would be if Konsole rendered each character on its own, instead of rendering complete text lines, but this would be much slower, and I doubt Konsole should work around bugs in upstream libraries.