How to disable HiDpi on macOS and quartz backend?

Hi,

Is it possible to disable GTK/GDK hidpi mode with pygtk3 - on macOS/Quartz backend?

I’ve tried to set various environment variables such as GDK_DPI_SCALE and GDK_SCALE seem to be ineffictive, while hints such as in HiDpi howto

gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "[{'Gdk/WindowScalingFactor', <2>}]"

cannot be used on macOS/Quartz.

I failed to find a way to disable hidpi with pygtk / macos / quartz environment.

Thanks,

Emmanuel.

It does not appear to be possible on the gtk side. The gdk quartz backend uses the NSWindow backingScaleFactor property.

GDK_SCALE doesn’t work on Wayland either, apparently.

Ok. It would not be required for a regular use, but it could have been useful for troubleshooting purpose. Thanks for your reply.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.