Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gtk: Always read gtk-xft-dpi for font scaling
Commit ad503b8 ("linux: consider Xft.dpi to scale the content") introduced reading gtk-xft-dpi when the X11 build option is enabled. While the name suggests it is X11-specific (perhaps it was at one point), gtk-xft-dpi is a GTK setting that can be modified regardless of GDK backend. GNOME’s Large Text accessibility setting ultimately modifies it. Outside of desktop environments, it can be set via GTK configuration files. Remove the conditional gating the code on X11, since none of the code is actually X11-specific. While we’re here, document scaling behaviors under Config.font-size. Fixes: ad503b8 ("linux: consider Xft.dpi to scale the content") Fixes: #4338 Link: https://docs.gtk.org/gtk4/class.Settings.html Link: https://docs.gtk.org/gtk4/property.Settings.gtk-xft-dpi.html
- Loading branch information