Set a default font DPI if not set
ClosedPublic

Authored by davidedmundson on Aug 7 2017, 1:48 PM.

Details

Summary

Currently X and Xwayland (unless set otherwise) defaults to a DPI of 96.

GTK on wayland (unless set otherwise) defaults to a DPI of 96.

Qt (currently) defaults to physical size/resolution. This leads to
reports that Wayland looks big.

Qt is potentially also changing to 96 for > Qt5.10.
(it's in review at the time of writing)

Now kwin has proper scaling support, legacy apps get scaled by the
compositor without font hacks, and apps that scale themselves need a
non-scaled font DPI. (i.e a 4k screen at 2x still wants a DPI of 96 not
184).

We want to change the wayland scale factor not the font.

If a user does override this setting that override will still work.

BUG: 374978

Test Plan

don't have this setting explcitly set
dolphin --platform wayland and dolphin --platform xcb have everything
the same size. Even on a scaled display where one is scaled up by the
compositor and one is native.

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson created this revision.Aug 7 2017, 1:48 PM
Restricted Application added a project: Plasma. · View Herald TranscriptAug 7 2017, 1:48 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart accepted this revision.Aug 7 2017, 3:08 PM
This revision is now accepted and ready to land.Aug 7 2017, 3:08 PM
mart added a comment.Aug 7 2017, 3:09 PM

hopefully with this gui elements on plasma mobile should stop being so comically big

This revision was automatically updated to reflect the committed changes.