From 7cfdd9a5260b8bc6140a85270a6d6bb0cc98e009 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 8 Aug 2017 11:37:20 +0100 Subject: [PATCH] Set a default font DPI if not set 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. Reviewers: #plasma, mart Reviewed By: #plasma, mart Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D7185 --- startkde/startplasmacompositor.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/startkde/startplasmacompositor.cmake b/startkde/startplasmacompositor.cmake index 5bcf26af7..aed9c022f 100644 --- a/startkde/startplasmacompositor.cmake +++ b/startkde/startplasmacompositor.cmake @@ -131,6 +131,8 @@ fi if test "$kcmfonts_general_forcefontdpi" -ne 0; then export QT_WAYLAND_FORCE_DPI=$kcmfonts_general_forcefontdpi +else + export QT_WAYLAND_FORCE_DPI=96 fi # Source scripts found in /plasma-workspace/env/*.sh