Bug 431171 - 1px artifact in Konsole
Summary: 1px artifact in Konsole
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: font (other bugs)
Version First Reported In: 20.12.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-05 08:25 UTC by Vuk Mirovic
Modified: 2025-05-28 05:53 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of artifact (30.42 KB, image/png)
2021-01-05 08:25 UTC, Vuk Mirovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vuk Mirovic 2021-01-05 08:25:05 UTC
Created attachment 134564 [details]
Screenshot of artifact

SUMMARY
When doing reverse search in Konsole, 1px artifacts shows up

STEPS TO REPRODUCE
1. Open Konsole
2. Do reverese search
3. Observe on first matched character 1px artifact

OBSERVED RESULT
1px artifact

EXPECTED RESULT
No artifacts

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-01-05 17:48:36 UTC
Are you using fractional scaling or a non-default font size or font DPI?
Comment 2 Vuk Mirovic 2021-01-05 17:55:53 UTC
No, everything is on default, pretty much vanilla Plasma install on Arch Linux, global scale on 100%, DPI is not forced in font managment, general font is Noto 10pt, fixed with is Hack 10pt, thou I'm using Liberation Mono 10pt for Konsole, but I can reproduce it also with Hack 10pt.
Tried changing line spacing to see if it helps, but it does not.
Comment 3 Vuk Mirovic 2021-01-05 18:06:32 UTC
Also I found out today that text is highlighted like this because of newly released readline 8.1.0 (first char background white, rest black), which sets by default enable-bracketed-paste, so highlight is kind of inverted compared to <8.1.0 (only first char is highlighted with black background) and this artifact doesn't appear. 
I guess explicitly setting enable-bracketed-paste for older versions is needed, or using readline 8.1.0, to get this highlight and reproduce the issue
Comment 4 Nate Graham 2021-01-05 18:56:07 UTC
Interesting.
Comment 5 Christoph Cullmann 2025-05-28 05:53:46 UTC
Git commit beb3aa55459eb37610b257051960f3e3c9be9f90 by Christoph Cullmann, on behalf of Luca Carlon.
Committed on 28/05/2025 at 05:36.
Pushed by cullmann into branch 'master'.

Fixes related to cursor artifacts

This commit addresses some artifacts related to cursor updates.

First issue is reported in #431171. It seems that an offset was
intentionally left out when refreshing the cursor background.

Second issue is related to resolved issue #483197: antialiasing
when drawing is not properly working as reported in QTBUG-66036.
Enabling antialiasing only for the outline should prevent
artifacts while still rendering a proper outline.

Other observed artifacts were fixed.
Related: bug 483197

M  +1    -1    src/terminalDisplay/TerminalDisplay.cpp
M  +4    -7    src/terminalDisplay/TerminalPainter.cpp
M  +1    -1    src/terminalDisplay/TerminalPainter.h

https://invent.kde.org/utilities/konsole/-/commit/beb3aa55459eb37610b257051960f3e3c9be9f90