пʼятниця, 29 червня 2018 р. 16:33:24 EEST Fabian Vogt написано:
X was not designed for HiDPI and especially not mixed-DPI environments. It has only a single dpi specifier for the whole screen (spanning all monitors) and it is on all drivers, except the proprietary Nvidia driver, 96x96dpi. Each monitor geometry is available via XRandR though. I'm using SDDM config:
[XDisplay] ServerArguments=-nolisten tcp -dpi 142 to explicitly set 142 DPI But still, X has no support of mixed DPI, and when my external monitor has about 96-100 DPI, it looks not good :(
This is reported upstream as https://bugreports.qt.io/browse/QTBUG-67928 IMHO, that should be fixed in X drivers in the first place, not Qt. Am I wrong?
You can revert to the old behaviour by setting "Xft.dpi: 96" (most configuration dialogs call it "Force font DPI") or by setting QT_FONT_DPI=96 in the environment. As for now, I forced to set "Xft.dpi: 142" for GTK apps, as they ignore X parameters and are forced to 96 DPI, unless Xft.dpi is set. And that is very bad. Especially, as GDK_SCALE couldn't be fractional and 2 is too big for me and 1 is too small. So how those changes will affect non-Qt apps, like GTK? If Xft.dpi isn't set they became broken. And if I'll set Xft.dpi how new behaviour would work?
-- Kind regards, Mykola Krachkovsky -- Найкращі побажання, Микола Крачковський