Bug 482445

Summary: kmail font rendering broken on plasma 6 and HiDPI (scaled) display
Product: [Applications] kmail2 Reporter: Jeffrey Bouter <kde>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: adam, arisu+kdebugs, dwt, gerald.drissner, jan, kapsh, me, nicolas.fella, salvatore.c
Priority: NOR Keywords: qt6
Version: 6.0.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot of a test email in kmail
Kmail font rendering 125% scale, wayland, blown 300% no filter

Description Jeffrey Bouter 2024-03-05 08:31:46 UTC
Created attachment 166415 [details]
screenshot of a test email in kmail

SUMMARY

On Plasma 6, font rendering is broken when reading emails using kmail on a scaled (hidpi) display. Please see attached screenshot for a beautiful preview.

All other components of kmail scale and render fine.

STEPS TO REPRODUCE
1. Use wayland (not tested on X11)
2. Configure display scaling (only tested on 125% and 150%)
3. Open an email in kmail. Both HTML and text format are affected

OBSERVED RESULT

Blurred, unhinted fonts

EXPECTED RESULT

Clean, well rendered and hinted fonts.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon 22.04
(available in About System)
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION

Graphics platform: Wayland
kmail version: 6.0.0 (24.02.0)
Comment 1 Adam Pigg 2024-03-05 08:34:15 UTC
Created attachment 166416 [details]
Kmail font rendering 125% scale, wayland, blown 300% no filter
Comment 2 Adam Pigg 2024-03-05 08:37:06 UTC
Id like to add to this.

I run my desktop at 125%, in wayland, and attached a screenshot, scaled 300% in gimp.  The font rendering issue only seems to affect the kmail message pane, other text in plasma6 is fine.
Comment 3 Nicolas Fella 2024-03-08 22:42:17 UTC

*** This bug has been marked as a duplicate of bug 482128 ***
Comment 4 Gerald 2024-04-05 12:58:25 UTC
I can confirm this behavior on wayland, plasma 6, kmail 24.02.1. Only in the message pane, where the email content is displayed, fonts are not renderered sharply. This increases when we switch to HTML mode.
Comment 5 Iyán Méndez Veiga 2024-04-22 19:13:05 UTC
I can confirm as well. But I think it was correctly marked as a duplicate of Bug 482128, which is caused by this Qt bug https://bugreports.qt.io/browse/QTBUG-113574

Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.7-arch1-2 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 7900X3D 12-Core Processor
Memory: 93.5 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XT
Manufacturer: ASUS

*** This bug has been marked as a duplicate of bug 482128 ***