Summary: | Font scaling in plasma/wayland is broken; fonts are far too big | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | AE <vltg0903> |
Component: | generic-wayland | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aleixpol, bugs-kde, bugseforuns, kde, L.Bonnaud, mlt, simgunz |
Priority: | NOR | ||
Version: | master | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/plasma-workspace/7cfdd9a5260b8bc6140a85270a6d6bb0cc98e009 | Version Fixed In: | |
Attachments: |
Environment variables
kcmfonts config file kdeglobals config file output of xrandr -q |
Description
AE
2017-01-12 22:56:55 UTC
Seems that this happens only at high resolution (1920x1080), an external monitor (1280x1024) is also fine. Please attach your ~/.config/kcmfonts and ~/.config/kdeglobals and the output of "env". then remark this as unconfirmed. Created attachment 103396 [details]
Environment variables
Created attachment 103397 [details]
kcmfonts config file
Created attachment 103398 [details]
kdeglobals config file
Switching back to 'unconfirmed' as requested. This is the same on my laptop as well resolution 1920 x 1080 I should add that I saw this for plasma 5.8.5 and 5.9.95. Wayland is at 1.12, qt is version 5.7.1. One more piece of information please, can you include the output of xrandr -q and then if you want a quick workaround, open the fonts KCM, set force font DPI to 96. Created attachment 103422 [details]
output of xrandr -q
The workaround works fine, thanks! The same happens on my laptop, screen resolution 1366x768. The workaround works here too. Plasma 5.10.1. Qt 5.9.0 Display 3200x1600, Scale=2 Setting force fonts DPI to 96 helps the entire shell, apps to look like they would in the normal scaling environment with X11. But this workaround is not really a solution, is it? Confirming The issue (or difference) is that Qt XCB takes the DPI from X, X is (unless explicitly set, which no-one does) always returns 96. Under wayland the QPA evaluates it with pixel size/ physicalsize. This can return a ridiculous value because EDID information is wrong. and sometimes we get everything far too big because the user has already set a larger pixel value for their font size, which then gets multplied up. Git commit 7cfdd9a5260b8bc6140a85270a6d6bb0cc98e009 by David Edmundson. Committed on 08/08/2017 at 10:37. Pushed by davidedmundson into branch 'master'. 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. 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 M +2 -0 startkde/startplasmacompositor.cmake https://commits.kde.org/plasma-workspace/7cfdd9a5260b8bc6140a85270a6d6bb0cc98e009 |