Bug 475575

Summary: Underscores display as spaces in the window title bar
Product: [Plasma] Breeze Reporter: Riku <riku>
Component: window decorationAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: minor CC: bharadwaj.raju777, kwin-bugs-null, nate, uhhadd
Priority: NOR    
Version: 5.27.8   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Demonstration of the issue

Description Riku 2023-10-13 16:22:26 UTC
SUMMARY
Underscores display as spaces in the window title bar. Haven't noticed this happening elsewhere like when alt tabbing for example. Easily reproduced with any program that puts the current file/directory in the title.

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11
Comment 1 Nate Graham 2023-10-13 21:11:55 UTC
Cannot reproduce in Dolphin by creating a folder named "hello_foo" and then entering it.

What program is it happening in?

What window decoration style are you using?
Comment 2 Riku 2023-10-13 21:48:30 UTC
Seems to be any program for me, including dolphin.
Using breeze decorations. Looks like underscores are fine on oxygen or plastik.
Comment 3 Nate Graham 2023-10-16 17:03:08 UTC
Can you attach a screen recording of you reproducing the issue in Dolphin by creating a folder named hello_foo and entering it? Thanks!
Comment 4 Riku 2023-10-16 17:16:11 UTC
Created attachment 162353 [details]
Demonstration of the issue
Comment 5 Riku 2023-10-16 17:21:54 UTC
Added a video. I should have mentioned before that this only started happening recently.
Comment 6 Nate Graham 2023-10-17 17:26:23 UTC
Well that is strange indeed. I cannot reproduce it when I do the exact same thing.
Comment 7 Bharadwaj Raju 2023-11-01 16:45:34 UTC
What font (and font size) are you using? Are you using any scaling?
Comment 8 Riku 2023-11-01 17:05:34 UTC
I use DejaVu sans size 8, no scaling. Tried setting the window title size to 10 in system settings -> appearance -> fonts, and the underscores show up now.