Bug 460840 - KWin doesn't respect sub-pixel rendering setting for window titles
Summary: KWin doesn't respect sub-pixel rendering setting for window titles
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: 6.0.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 502136 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-10-22 06:36 UTC by Adam Fontenot
Modified: 2025-03-31 18:57 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Fontenot 2022-10-22 06:36:20 UTC
SUMMARY
I have RGB sub-pixel rendering enabled. It works as expected everywhere inside KDE / QT applications, but window titles are rendered with only grayscale anti-aliasing.

From what I can tell looking at some old screenshots, the issue first appeared sometime in 2018 or 2019. 

I think this probably affects anywhere that KWin draws text, but I'm not sure where that is besides the window title, so I can't verify. Text drawn as part in Plasma (e.g. in the task bar) respects the rendering settings.

STEPS TO REPRODUCE
1. Enable RGB sub-pixel rendering for fonts in your system settings. (I also have anti-aliasing enabled and hinting disabled, although this shouldn't matter.)
2. Restart KWin and see if window titles are subpixel rendered. (If you take a screenshot and zoom in close, you should see color fringing around the glyphs.)

OBSERVED RESULT
Window titles are not subpixel rendered.

EXPECTED RESULT
They should be.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 6.0.1-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 Nate Graham 2022-10-24 19:10:49 UTC
Can reproduce.
Comment 2 Adam Fontenot 2024-03-04 21:38:30 UTC
Reproduced on 6.0.0.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 3 Nate Graham 2025-03-31 18:57:58 UTC
*** Bug 502136 has been marked as a duplicate of this bug. ***