[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: RFR: 8248126: JavaFX ignores HiDPI scaling settings on some linux platforms
From:       Debayan Sutradhar <github.com+25760501+rnayabed () openjdk ! java ! net>
Date:       2021-02-15 14:51:44
Message-ID: OVkzpGb6SYypl9zRLnArYYGrp7eXAh7x5FbiyxLpqUM=.5abfa0d7-2d58-475a-8a95-a56f634ae896 () github ! com
[Download RAW message or body]

On Mon, 15 Feb 2021 07:41:17 GMT, Ambarish Rapte <arapte@openjdk.org> wrote:

> > JavaFX ignores the HiDPI scaling settings on Fedora 32 and Ubuntu 20.04.
> > 
> > The scale detection in JavaFX assumes that the "scaling-factor" setting in \
> > "org.gnome.desktop.interface" has the correct Hi-DPI setting. But this not true \
> > for some systems and "scaling-factor" has value of 0. JavaFX should detect the \
> > windows level scale factor automatically in this case,  but this logic is missing \
> > right now. So, the JavaFX applications are not scaled properly.  This issue can \
> > be reproduced by setting the scale from Settings->Displays->Set Scale. Note, the \
> > option for scale may not be present from some resolution settings, so you may \
> > need to change it to see the option to scale the full windowing system. The issue \
> > can be verified by running some JavaFX applications/samples. The application will \
> > not be scaled properly according to the UIScale. \
> > https://bugs.openjdk.java.net/browse/JDK-8258464 is similar bug and has been \
> > closed as duplicate. 
> > This fix adds the logic to detect the scale from windows system itself.
> > I have ran all automated unit tests and system tests, this fix is not causing any \
> > new failures. I have tested this on fedora 32 VM, Ubuntu 20.04 VM and Ubuntu \
> > 20.10 VM.
> 
> Looks good, verified with Ubuntu 20.04.

This is amazing. I had to set uiScale on startup because it wouldnt work on ubuntu \
20.04

-------------

PR: https://git.openjdk.java.net/jfx/pull/396


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic