Ugly Horizontal Lines Displayed in Kate and Konsole with Fractional HiDPI Scaling

katekdekonsoleplasma5

Here is a picture of the problem:

enter image description here

Notice that all lines of text have horizontal lines similar to underlining. However, this is a plain text editor (Kate) and it does not do underlining. There is no formatting applied to this text.

I selected the text so the lines would show up better in a photo. But the lines exist even without selecting the text. Sometimes they are much thicker and darker. Sometimes they are light. Sometimes they won't be there at all, only to come back at random.

Konsole has the same issue. With white text on a black background, Konsole sometimes show multi-colored horizontal lines. Sometimes every line in Konsole has this ugly and distracting underlining. Sometimes only a portion of the lines have it.

Sometimes the lines are so dense and overwhelming that it is hard to read the text. Other times the lines are mild, as in the attached photograph.

I first saw this issue about a ten months ago on a desktop computer. I thought the user had just done something really crazy in font settings. But now I am seeing the issue on a new laptop without any significant settings changes from default.

Both systems run a fully updated Arch Linux KDE. On this laptop, I reset all font settings (in System Settings) to default values. I also reset the Konsole profile appearance to default settings (even though settings were already at default values).

However, the horizontal lines will not go away.

The applications work correctly (other than sometimes being hard to read text). Copied text does not include the horizontal lines. Commands in Konsole are not affected by the appearance of horizontal lines. It seems to be a display glitch, but it is not specific to any GPU (affects Intel or nvidia) or to any display screen (I tested different monitors on the desktop) or to anything else I can determine.

I tried various fixes on the affected desktop over the last ten months and I have not resolved it on that machine either.

I have multiple other Arch KDE computers that do not have the problem.

Does anyone have a clue as to what might cause this? Has else anyone seen it?

Edit: Please see the KDE bug report for Konsole:
373232 – Horizontal lines with fractional HiDPI scaling

Best Answer

This is reported to have been resolved in QTBUG-66036 with version 5.12. As of the time I am writing this, QT on Arch Linux is version 5.11.2-1. Other common distros have also not released packages with Qt 5.12. However, when Qt 5.12 is released, the developers expect this issue to be resolved.

To check your Qt version, you can open a terminal and type:

qmake --version

The output will look similar to this

QMake version 3.1
Using Qt version 5.11.1 in /usr/lib

When you see Qt version 5.12, then you can expect a resolution. If not, let the developers know at QTBUG-66036.

In the mean time, there is a work-around, as described in the bug report below

Steps to reproduce:

  1. Displays -> Scale -> Scale Factor: 1.3 (or 1.4, etc.)
  2. Restart
  3. Open Konsole or Kate, type stuff

Workaround: set Scale Factor back to 1.0 (or to an integer such as 2 or 3).

There is a similar bug report for Konsole here

373232 – Horizontal lines with fractional HiDPI scaling
https://bugs.kde.org/show_bug.cgi?id=373232

Related Question