Skip to content

馃崚Retrieve text DPI from kcmfonts configuration file

Fushan Wen requested to merge work/cherry-pick-1b66b4b5 into Plasma/5.27

Beside monitor scaling factors, a user may specify a preferred text DPI size from the system configuration utility (KCM fonts) That setting is stored inside the kcmfonts configuration file; one entry is kept for Plasma/X11 sessions, "forceFontDPI", and another for Plasma/Wayland sessions, "forceFontDPIWayland".

Here we make kde-gtk-config read such entries (depending on the Plasma session type) and then set the GTK text scaling settings accordingly.

Fixes #3 (closed)

BUG: 466463 BUG: 461106 FIXED-IN: 5.27.4

(cherry picked from commit 1b66b4b5)

Merge request reports

Loading