SUMMARY I have a 4K 27" screen and I wish to force a larger font DPI value via kde-gtk-config on Wayland for GTK/Java applications which don't respect native Wayland scaling. Why? Switching from the default Xft/DPI=144*1024 to Xft/DPI=163*1024 (manually via xsettingsd) makes the text size and clarity perfect for me. It's a personal preference. GDK_SCALE is acceptable for e.g. JDownloader2 which has miniscule UI elements out-of-the-box, but certainly not for Mullvad Browser which is certainly usable, although not as crisp as it could be. Please note: Xft/DPI here is only used as an example. The implementation details don't matter to me. RELEVANT - `int ConfigValueProvider::fontDpi()` in `kded/configvalueprovider.cpp` - `void GtkConfig::setTextScale()` in `kded/gtkconfig.cpp`
Just to make sure I fully understand: - you set the slider in display monitor to 150% - the X11 font DPI changes to 144 (aka 150%) and everything is rendered at that size - you want the GTK fonts to be bigger that that separate from the value you selected on the display slider.
Created attachment 174984 [details] GTK 144 vs 163 DPI side-to-side
Created attachment 174985 [details] JDownloader2 different configurations
(In reply to David Edmundson from comment #1) Yes, correct. I've added two screenshots showing the differences on GTK and Java. I was primarily looking at making JDownloader2 usable, GTK is just a side-effect which I gladly accept.
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
That's not something we support, sorry.