Bug 504327

Summary: Font warping during selection
Product: [Applications] konsole Reporter: Rosalie <rosalie>
Component: fontAssignee: Konsole Bugs <konsole-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: john.kizer
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Video which shows the issue

Description Rosalie 2025-05-16 11:50:30 UTC
Created attachment 181377 [details]
Video which shows the issue

SUMMARY
I've noticed a weird font issue in Konsole in a recent-ish update, it makes the font width change when selecting text

I've bisected it to be76d4a2480fbf24e261cf3bf0f69a781100d534, reverting that commit fixes the issue.

I'm using Berkeley Mono, which is sadly a paid font: https://berkeleygraphics.com/typefaces/berkeley-mono/

In the commit that causes the issue, it says the following:
    Enabling hinting does not achieve the desired results (integer width fonts). 
    It helps with some fonts, but makes the situation worse with others.

If this is the case, maybe adding an option to Konsole for full font hinting would help users who are experiencing this issue.


STEPS TO REPRODUCE
1. Open Konsole after be76d4a2480fbf24e261cf3bf0f69a781100d534
2. Select some text
3. See the font warp in width

OBSERVED RESULT
Font width changes in the selection

EXPECTED RESULT
Font shouldn't change width in selection

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.5-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 47.0 GiB of RAM
Graphics Processor: AMD Radeon RX 6600

ADDITIONAL INFORMATION
I've attached a small video which showcases the issue.
Comment 1 John Kizer 2025-05-19 06:41:56 UTC
Hi - merging this in with the existing bug report for this issue. Thanks!

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