Weird font rendering and alignment

Hi. I’m not sure if this is a bug, but in some cases, fonts are rendered slightly incorrectly in Plasma menus.

This isn’t a big deal, but it is sometimes annoying.

PC:

Lenovo Legion Pro 7 16ARX8H
AMD Ryzen 9 7945HX
RTX4090
Fedora 40 (6.11 kernel)

Here are some examples:


It looks like some letters are slightly smaller/larger than the others, and/or are rendered at a lower quality/resolution.

If I switch to dGPU only, the fonts look better, but still not perfect.

I do not see this problem on my f40 kde.

I have a 3840x2160 HDR screen that I’m scaling to 125% under Wayland.

What is output of kscreen-doctor -o?

That’s a really strange rendering bug, i don’t think i’ve ever seen that before. :thinking:

Output: 1 eDP-1
        enabled
        connected
        priority 1
        Panel
        Modes:  1:2560x1600@240*!  2:2560x1600@60  3:1920x1200@240  4:1920x1080@240  5:1600x1200@240  6:1680x1050@240  7:1280x1024@240  8:1440x900@240  9:1280x800@240  10:1280x720@240  11:1024x768@240  12:800x600@240  13:640x480@240  14:1600x1200@60  15:1280x1024@60  16:1024x768@60  17:2560x1600@60  18:1920x1200@60  19:1280x800@60  20:2560x1440@60  21:1920x1080@60  22:1600x900@60  23:1368x768@60  24:1280x720@60 
        Geometry: 0,0 1707x1067
        Scale: 1.5
        Rotation: 1
        Overscan: 0
        Vrr: Automatic
        RgbRange: unknown
        HDR: disabled
        Wide Color Gamut: disabled
        ICC profile: none
        Color profile source: sRGB
        Brightness control: supported, set to 100%

Try experimenting with the scaling.
Try 100% and 200% does that change the font issue?

It could also be a problem with the font hinting. Have you tweaked any settings before relating to things like font aliasing or subpixel geometry?

100% scaling does make the fonts look slightly better, although they are still bugged. I would prefer my current (default) scaling, it’s the best for me.

I messed with every setting here, turning on and off Anti-Aliasing, range exclusion, trying every single rendering and hinting. Nothing made any difference… like literally, either I’m blind or these settings don’t actually do anything. :confused: All fonts look exactly the same no matter what.

image