Bug 503087

Summary: Font rendering broken when word mode is enabled
Product: [Applications] konsole Reporter: erentar2002
Component: fontAssignee: Konsole Developer <konsole-devel>
Status: CONFIRMED ---    
Severity: normal CC: 13736845354, benedikt.rips, breakingspell, colin.cope, furo, hasezoey, kde, kdedev, may5694, mds_foss, morisset.hugues, nul_sss, pereira.alex, rblade457, rosalie, sauersandro149, voxelprismatic, yule2000, zpnewman10
Priority: NOR Keywords: regression
Version First Reported In: 25.04.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=483292
https://bugs.kde.org/show_bug.cgi?id=494788
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: video showing the incorrect font rendering
Exaggerated font rendering bug
Subtle rendering bug

Description erentar2002 2025-04-21 00:36:46 UTC
Created attachment 180464 [details]
video showing the incorrect font rendering

font rendering with "Complex Text Layout > Word mode" enabled went completely bonkers after the last update from 24.12.3 -> 25.04.0

Disabling word mode fixes the issue, however it also disables ligatures.

Also note I am on wayland and use fractional scaling at 150%.
Comment 1 Daniel Petrov 2025-04-21 14:57:45 UTC
*** Bug 503116 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Petrov 2025-04-21 14:58:47 UTC
Created attachment 180482 [details]
Exaggerated font rendering bug

Font: Ubuntu @ 8px
Comment 3 Daniel Petrov 2025-04-21 14:59:27 UTC
Created attachment 180483 [details]
Subtle rendering bug

Font: UbuntuSansMono Nerd Font Mono @ 8px
Comment 4 Blazer Silving 2025-04-21 17:16:33 UTC
Seeing the same with X11 at 100% scaling with MesloLGS NF. This also affects Yakuake (and any program that sources Konsole profile).

Turning off "Word Mode" does work! Thanks for the pointer, but as you mentioned it does impact ASCII/ligatures. 

I noticed while sifting through commits that Word Mode is disabled by default on new installs, due to QT regressions: https://invent.kde.org/utilities/konsole/-/merge_requests/1044. 

So far I haven't ran into any missing elements after toggling Word Mode off, fonts and icons render as they did in 24.12.3.
Comment 5 RocketDev 2025-04-22 09:22:06 UTC
Have the same issue with font JetBrains mono.
Comment 6 John Kizer 2025-04-25 03:26:38 UTC
*** Bug 503312 has been marked as a duplicate of this bug. ***
Comment 7 Sandro Sauer 2025-04-26 17:50:32 UTC
Leaving Word Mode enabled, but disabling ASCII Characters, fixes the issue for me. Although it does disable Ligatures
Comment 8 mydarkstar 2025-04-30 10:25:39 UTC
I can confirm that this happened when upgrading from Konsole version 24.12.3 to 25.04.0.

Benedikt in bug 503312 wrote the following:
> Looking through the commit history between the 24.11 and 24.05 releases,
> I found that https://invent.kde.org/utilities/konsole/-/commit/be76d4a2480fbf24e261cf3bf0f69a781100d534 may be the culprit.
> And indeed, a custom build that had this commit reverted behaved as expected.

Therefore, I'm adding bug 483292 and bug 494788 as related, as merge request !1044 [1] was attempting to fix them.

Side notes:
- Interestingly, while testing on the current KDE neon testing 20250429 even the default settings (using Hack font) are quite janky as soon as you enable word mode.
- I personally use Fira Code in word mode with ligatures. With 9px font size, I experience deal-breaking glitches, but with 10px, it suddenly appears fine.

[1] https://invent.kde.org/utilities/konsole/-/merge_requests/1044
Comment 9 mydarkstar 2025-04-30 10:46:58 UTC
> Interestingly, while testing on the current KDE neon testing 20250429 even the default settings
> (using Hack font) are quite janky as soon as you enable word mode.

Bug 474621 looks exactly like what I see on KDE neon testing when highlighting text with default settings and word mode.
So this is definitely a regression.
Comment 10 Alexandre Pereira 2025-05-05 10:24:25 UTC
If this is the same issue I am having, I found out that increasing font size fixes for me.

In my case, anything below font size 15pt is broken, but at 15pt works properly.
Comment 11 hasezoey 2025-05-12 08:42:36 UTC
Also ran into this problem trying to figure out what it is.
This issue did not happen in "24.12.3" but happens in "25.04.0" and only when the font size is anything other than "11pt"(the default). I normally have it set to "10pt".

The following workarounds work for me:
- disabling "Word mode"
- disabling "ASCII characters" (but leaving "Word mode" on)
- downgrading the version

I had tried all the fonts Konsole allows me to select, which includes "Hack Nerd Font"(+" Mono"), "JetBrains Mono", "Monospace", "Adwaita Mono" and "DejaVu Sans Mono".

All my display scales are 100% and the problem happens on any display.

Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.12.25-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX Vega
Manufacturer: ASUS
Comment 12 John Kizer 2025-05-15 02:56:02 UTC
*** Bug 504057 has been marked as a duplicate of this bug. ***
Comment 13 John Kizer 2025-05-19 06:41:56 UTC
*** Bug 504327 has been marked as a duplicate of this bug. ***
Comment 14 zpnewman10 2025-05-28 17:06:39 UTC
Same issue on Neon (User edition) w/ Konsole and a mono nerd font. Noticed my ligatures were missing, so I enabled word mode and the text got all bunched up. For now I'm just leaving word mode disabled and am gonna live without the ligatures for a bit.
Comment 15 Erwin Iosef 2025-06-25 14:05:01 UTC
zpnewman, you could just downgrade konsole to last 24.12.3 release until they fix it.
Comment 16 Erwin Iosef 2025-09-14 10:04:47 UTC
Issue still persists in 25.08.1