HiDPI Fractional Scaling on Linux/GTK

Philip Race philip.race at oracle.com
Thu Sep 30 22:35:35 UTC 2021


I don't have a succinct answer to your question without doing a bunch of 
research.
Probably start by just updating the code that forces it to be an int and 
see what breaks :-)
Maybe one of the folks who worked on it for windows could say what is 
missing but
I'd guess shared Swing code is probably going to be mostly OK since we 
do it for Windows
So it comes down to how much platform-specific code is needed and what 
are the difficult problems.
I think if it had been easy it would have been done, but possibly folks 
also ran out of
time and needed to focus on trying to finish most of Windows.

-phil.

On 9/29/21 5:23 AM, Matthew Wallace wrote:
> I'd like to use fractional scaling in my swing application on Linux (GTK).
> My application already works perfectly with fractional scaling on Windows
> (Java seems to abide by the system settings) but on Linux the system
> settings are ignored and setting GDK_SCALE only works for integer values.
> Could anyone familiar with this outline for me the work needed to support
> fractional scaling on Linux?  I'm willing to do some hacking to make this
> work, but I really have no idea where to start or if it's even feasible.
> Any help is greatly appreciated.




More information about the client-libs-dev mailing list