Bug 453419

Summary: Incorrect handling of fonts / free space in view
Product: [Applications] systemsettings Reporter: David <kitt997>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate
Priority: NOR    
Version: 5.24.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Sample screenshot

Description David 2022-05-05 12:46:33 UTC
Created attachment 148581 [details]
Sample screenshot

SUMMARY
When changing the default system fonts, system settings app shows truncated text strings.


STEPS TO REPRODUCE
1. Change system fonts to something else. In my case, Roboto 10.5 pt
2. Exit system settings
3. Reopen system settings

OBSERVED RESULT
Text strings are truncated

EXPECTED RESULT
Text strings have more than enough space. they should be completely visible.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 35
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.5-200.fc35.x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION
I've used Qt and I can recognize this behavior being related to the use of QFontMetrics::elidedText() or something similar. But the cause of the problem is elsewhere (specifically, in the wrong boundaries given). 
As you can see from the attached screenshot, there is much space available that the view doesn't take advantage of, no matter what I try.
Comment 1 Nate Graham 2022-05-05 22:09:25 UTC
You'll need to change your font back to have an integer size to work around this bug. See Bug 432372 for details.

*** This bug has been marked as a duplicate of bug 432372 ***
Comment 2 David 2022-05-06 13:54:47 UTC
(In reply to Nate Graham from comment #1)
> You'll need to change your font back to have an integer size to work around
> this bug. See Bug 432372 for details.

cool one, thanks.