Stefan Krusche composed on 2021-09-29 10:10
(UTC+0200):
$ cat .Xresources
Xft.dpi: 102
This file is automatically read when X is started and before TDE is
lauched by the user and sets the DPI resolution as requested:
$ xrdb -query -all | grep -i dpi
Xft.dpi: 102
Xft.dpi is the means by which TDE-Control -> Appearance -> Fonts: "Force
DPI for fonts:" is applied. When this is used, it is stored in
~/.trinity/share/config/kcmfonts as forceFontDPI= under [General]. With
TDE closed, you can put any number you please here and it will stick.
Not app apps are affected by Xft.dpi. Xft.dpi is the "knob" by which
Gnome/GTK font scaling is applied. If you wish non-adherent apps to use
your specific DPI, X itself needs a DPI forced. Various methods can do
this:
1-DisplaySize in /etc/X11/xorg.con* can do it.
2-The xsession startup script can do it with a -dpi switch.
3-Xrandr can do it with -dpi option either via startup script, which
will affect the entire session, or after startup, by which it will only
affect apps started after running it. This latter method can be helpful
in choosing an optimal value.
Question: It could be useful to add another usual resolutions of HIDPI
monitors to the list of resolutions in TDE Control Center?
Cheers
--
Slávek