<Swing Dev> [9] Review request for 8058742: Text size is twice bigger under GTK L&F on Gnome with HiDPI enabled

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Fri Jul 29 11:30:51 UTC 2016


On 26.07.16 22:05, Semyon Sadetsky wrote:
>> It is actually directly related to the global scale, since support of
>> Xft/ was added in JDK-4830281 as a way to scale java UI. And now the
>> new solution and the old one conflicts. Can we skip the usage of
>> gnome.Xft if default device scale is not identity (which means that
>> some other scale factor is used)?
> Do you mean if native scale > 1 then to use scale=1 for GTK font size?
> That will give the same result I guess.

Did you try to implement it? In this case the gnome.Xft will be used 
only if no other scale was set, it should work like described below:

>  - Take debug scale into account if it was set and skip all others.
>  - Check J2D_UISCALE
>  - Check scale-factor, text-scale-factor, text-scaling-factor.
>  - Check Xft.dpi.
>  - If non of them was set then scale=1 should be used.

-- 
Best regards, Sergey.



More information about the swing-dev mailing list