HiDPI on Windows (original) (raw)

November 23, 2024, 7:02pm 1

I’m attempting to write an app that runs on both Linux and Windows. I also want to properly support HiDPI, but it appears that GTK defaults to being DPI unaware despite there being support for it in the codebase. Is there something I’m missing?

swilmet (Sébastien Wilmet) November 24, 2024, 11:03pm 2

Which version of GTK do you use?

jgcodes2020 (jgcodes2020) December 4, 2024, 2:40am 3

4.16, latest version from gvsbuild

swilmet (Sébastien Wilmet) December 4, 2024, 3:44pm 4

I suppose that the result is that the UI elements appear too small.

One temporary solution would be to provide a configuration for the Scaling Factor, like provided in gnome-tweaks, but for Windows.

I suppose that the same GSettings key affect the size on Windows too. Try changing the default value of /org/gnome/desktop/interface/text-scaling-factor, to see if it fixes the problem.

Ideally an automatic configuration should be done, but in the meantime it is relatively easy to implement.

system (system) Closed December 18, 2024, 3:44pm 5

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