Bug 479611

Summary: Unnecessarily elided text in "Share" popup with 10pt SF Pro Display font and full font hinting
Product: [Frameworks and Libraries] frameworks-purpose Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Aleix Pol <aleixpol>
Status: RESOLVED NOT A BUG    
Severity: minor CC: aleixpol, nate, uhhadd
Priority: NOR    
Version First Reported In: 5.248.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot
SF Pro Display fonts

Description Patrick Silva 2024-01-10 15:25:17 UTC
Created attachment 164790 [details]
screenshot

STEPS TO REPRODUCE
1. open Discover
2. click on any app
3. click on "Share" button below the app description

OBSERVED RESULT
Unnecessarily elided text seen in the attached screenshot

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.91.0
KDE Frameworks Version: 5.247.0
Qt Version: 6.7.0
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-01-11 16:26:31 UTC
Likely caused by the metrics of your font, as I don't see this with Noto Sans. What font are you using?

The dialog comes from Purpose; moving there.
Comment 2 Patrick Silva 2024-01-11 17:11:50 UTC
Created attachment 164817 [details]
SF Pro Display fonts

I'm using the attached fonts.
Comment 3 Nate Graham 2024-01-12 21:40:06 UTC
Thanks. What exact font and font size are you using? I cannot reproduce with issue with 10pt or 11pt SF Pro.
Comment 4 Patrick Silva 2024-01-13 15:49:48 UTC
I'm using regular fonts, 10pt. The bug occurs if font hinting is set to "Full". Can reproduce on neon unstable too.
Comment 5 Nate Graham 2024-01-16 21:05:08 UTC
Can reproduce the issue with 10pt SF Pro Display and full hinting. 10 pt Noto Sans with full hinting is not affected, though.
Comment 6 Janet Blackquill 2024-01-16 21:15:14 UTC
SF Pro Display is a display font, which does not mean "display" as in "computer display." Display in the context of typography means that it is designed to be viewed at large sizes and the metrics and glyphs are adjusted accordingly. Using a display font at small sizes and getting suboptimal results is not a bug. Feel free to reopen if you can reproduce this with a non-display font.