Bug 395215 - Font settings affect scaling in an unexpected way
Summary: Font settings affect scaling in an unexpected way
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.12.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-10 15:14 UTC by Ilya Bizyaev
Modified: 2021-03-10 03:30 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Case #1, Roboto 10 (75.62 KB, image/jpeg)
2018-06-10 15:15 UTC, Ilya Bizyaev
Details
Case #1, Roboto 11 (57.56 KB, image/jpeg)
2018-06-10 15:16 UTC, Ilya Bizyaev
Details
Case #2, Kickoff, Noto Sans (93.46 KB, image/jpeg)
2018-06-10 15:17 UTC, Ilya Bizyaev
Details
Case #2, Kickoff, Zilla Slab (same size) (92.23 KB, image/jpeg)
2018-06-10 15:18 UTC, Ilya Bizyaev
Details
Case #2, Kickoff, Catamaran (same size) (79.45 KB, image/jpeg)
2018-06-10 15:19 UTC, Ilya Bizyaev
Details
Case #2, notification, Noto Sans (31.24 KB, image/jpeg)
2018-06-10 15:20 UTC, Ilya Bizyaev
Details
Case #2, notification, Zilla Slab (same size) (24.63 KB, image/jpeg)
2018-06-10 15:20 UTC, Ilya Bizyaev
Details
Case #2, notification, Catamaran (same size) (32.86 KB, image/jpeg)
2018-06-10 15:21 UTC, Ilya Bizyaev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2018-06-10 15:14:33 UTC
Using a different font family than Noto Sans or different sizes results in unexpected scaling changes that affect Kickoff, notifications and other parts of the UI.

Apart from that, the issue prevents from using any other DPI setting than X11's default 96.

I attach a number of screenshots which show how the scaling may change depending on user's settings.
Comment 1 Ilya Bizyaev 2018-06-10 15:15:50 UTC
Created attachment 113195 [details]
Case #1, Roboto 10
Comment 2 Ilya Bizyaev 2018-06-10 15:16:14 UTC
Created attachment 113196 [details]
Case #1, Roboto 11
Comment 3 Ilya Bizyaev 2018-06-10 15:17:57 UTC
Created attachment 113197 [details]
Case #2, Kickoff, Noto Sans
Comment 4 Ilya Bizyaev 2018-06-10 15:18:33 UTC
Created attachment 113198 [details]
Case #2, Kickoff, Zilla Slab (same size)
Comment 5 Ilya Bizyaev 2018-06-10 15:19:13 UTC
Created attachment 113199 [details]
Case #2, Kickoff, Catamaran (same size)
Comment 6 Ilya Bizyaev 2018-06-10 15:20:21 UTC
Created attachment 113200 [details]
Case #2, notification, Noto Sans
Comment 7 Ilya Bizyaev 2018-06-10 15:20:51 UTC
Created attachment 113201 [details]
Case #2, notification, Zilla Slab (same size)
Comment 8 Ilya Bizyaev 2018-06-10 15:21:29 UTC
Created attachment 113202 [details]
Case #2, notification, Catamaran (same size)
Comment 9 Ilya Bizyaev 2018-06-10 15:22:37 UTC
The first screenshot in each series shows the expected UI scaling.
Comment 10 Nate Graham 2021-03-10 03:30:22 UTC
This is pretty much intentional, to ensure that the relative proportions of the UI remain the same as the font is changed. It breaks down if you crank the font too high, after which point it would make more sense to use a scale factor to make things bigger or smaller. The Fonts KCM now advises you to do this if you try. :)

Sadly it's true that there can be minor bugs introduced based on the metrics of the fonts; for example 11pt Noto Sans is 22% bigger than 10pt Noto Sans, not 10% bigger as yo would expect. As a result going to 11pt Noto Sans makes everything enormous. This is a bug in Noto Sans itself, sadly. See Bug 431947 for details.

Those issues should be tracked separately though.