Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 7cfdd9a5 authored by David Edmundson's avatar David Edmundson

Set a default font DPI if not set

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

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.

Reviewers: #plasma, mart

Reviewed By: #plasma, mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 0fa58f0a
......@@ -131,6 +131,8 @@ fi
if test "$kcmfonts_general_forcefontdpi" -ne 0; then
export QT_WAYLAND_FORCE_DPI=$kcmfonts_general_forcefontdpi
# Source scripts found in <config locations>/plasma-workspace/env/*.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment