Bug 494987 - kde-gtk-config: want force font DPI for Wayland-non-scaling apps
Summary: kde-gtk-config: want force font DPI for Wayland-non-scaling apps
Status: RESOLVED INTENTIONAL
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_style (show other bugs)
Version: 6.2.1
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-18 12:07 UTC by David Anderson
Modified: 2024-11-05 21:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
GTK 144 vs 163 DPI side-to-side (43.18 KB, image/png)
2024-10-18 13:14 UTC, David Anderson
Details
JDownloader2 different configurations (393.70 KB, image/png)
2024-10-18 13:15 UTC, David Anderson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Anderson 2024-10-18 12:07:18 UTC
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`
Comment 1 David Edmundson 2024-10-18 12:30:50 UTC
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.
Comment 2 David Anderson 2024-10-18 13:14:54 UTC
Created attachment 174984 [details]
GTK 144 vs 163 DPI side-to-side
Comment 3 David Anderson 2024-10-18 13:15:25 UTC
Created attachment 174985 [details]
JDownloader2 different configurations
Comment 4 David Anderson 2024-10-18 13:17:17 UTC
(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.
Comment 5 Bug Janitor Service 2024-11-02 03:46:33 UTC
🐛🧹 ⚠️ 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!
Comment 6 Nate Graham 2024-11-05 21:25:58 UTC
That's not something we support, sorry.