Bug 430152 - Text Field Should Not Change Height When Selecting Different Fonts
Summary: Text Field Should Not Change Height When Selecting Different Fonts
Status: RESOLVED INTENTIONAL
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_fonts (show other bugs)
Version: 5.20.4
Platform: Fedora RPMs Other
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-08 14:24 UTC by Andres Betts
Modified: 2021-01-26 16:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Betts 2020-12-08 14:24:07 UTC
SUMMARY
In the fonts KCM, selecting different fonts changes that height of the text field to show the selected font. If the font is bigger than the space allowed in the field, then the field will change. This is because we try to accurately represent the sizes that the fonts will take when selected. However, this makes for an odd visual inconsistency for the user.

This can be solved by having a preview area. This is already being proposed. My suggestion would be that if the preview area is accepted, the fields below should "not" try to preview font size and only preview font family.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2020-12-08 16:09:50 UTC
Even if we have a large central preview area, we can't stop making the text field bigger to accommodate bigger fonts unless we entirely remove the preview of that font from the text field. Is what what you're proposing?
Comment 2 Andres Betts 2020-12-08 16:19:48 UTC
My preference is to have maybe the font shape show and not the size. If that's not possible, I would ask to have no preview at all in the font fields.
Comment 3 Nate Graham 2020-12-08 16:27:59 UTC
Making the preview show the font but not the size is possible, but I foresee that it would lead to bug reports. For example the preview for the "small" font and the "normal" font would look identical in the preview areas, because they typically only differ by their sizes.

Ditching the preview in the text fields entirely would resolve this, in the sense than removing a feature eliminates bugs in the feature. But I'm not sure it would be an improvement overall.
Comment 4 Andres Betts 2021-01-26 16:11:24 UTC
I understand.
Comment 5 Nate Graham 2021-01-26 16:22:10 UTC
So yeah, I don't think there's a clean way to do this, sorry. :)