9

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

6

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

  • 3
    that workaround is absurd on 4k+ btw – tomasb Jun 6 '18 at 12:34
  • 1
    Yes, I agree that the workaround is terrible. Looking forward to a proper fix. – BugBuddy Jul 9 '18 at 7:48
  • found that integer factors work well (e.g. 2.0, 3.0, ...) – tomasb Jul 9 '18 at 16:38
  • please add a comment to the bug report: bugs.kde.org/show_bug.cgi?id=373232 – MountainX Jul 10 '18 at 17:18
  • 1
    @tomasb - If you want this fixed, please consider creating a login so you can let the developers know it affects you. If you are too lazy to do even that, you have no right to complain about the workaround (or anything else) being "absurd". If you use open source, please find ways to contribute, even if by only voting or commenting on bug reports -- anything. Be part of the community. – BugBuddy Sep 25 '18 at 18:48
5

Upgrading to Qt 5.12 is fine, but does not seem to fix the issue straight away. In Konsole profile settings under the advanced tab, change "Line Spacing" to 1. This has fixed the issue with horizontal lines for me.

  • 2
    That worked for me thanks a lot ! – Thomas Mar 20 at 10:50
  • That worked .. linux is never ready for its debut though.. – Hugo Mar 22 at 12:26
  • had to increase it to 5, but worked fine. thank you. – User1291 Apr 3 at 9:39
  • Yes, thanks, it works nice for konsole (it's sad there is no the same option for kate) – xwild Apr 17 at 19:41
1

As a workaround, you could change the Fonts DPI:

  1. go to Fonts, check the box Force Fonts DPI
  2. set to an appropriate value (I use 144 on a 2560x1440 screen, you may want to try 192 in 4K)
    • Higher DPI translate to bigger text in your screen
  3. Set the your display scaling factor back to 1
  4. Logout and login to your user (or restart)

At this point the horizontal lines should be gone and you should be able to read everything on your screen

  • This is the only solution that works at the moment, and it will also adjust the scale of UI elements (not just font size). The dedicated "Scale Display" feature is still broken and causes several KDE applications to render with line artifacts. – tiguchi 3 hours ago
0

Another workaround is setting line interval to 1 in profile settings. It's almost unnoticeable, but fixes the issue.

  • We expect answers to be stand-alone and self-sufficient.  People should be able to understand your answer without needing to read the other answers.  What profile settings?  Where does the user set them, and how? … Please do not respond in comments; edit your answer to make it clearer and more complete. – G-Man Dec 5 '18 at 16:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.