<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
Tue Jul 26 10:23:49 UTC 2016
On 25.07.16 20:56, Semyon Sadetsky wrote:
> But the font doesn't need to be scaled if JDK supports scale already.
> Before the scale support is added to JDK the native scale was supported
> for GTK LnF only and using fonts size only. I kept this simplified scale
> support for compatibility with Linux OSes for which native scale is not
> supported. For Qt based WMs for example.
The question was why the native scale is taken into account, but debug
scale not. In this case we will get a different results if the native
scale=2 was read from J2D_UISCALE/scale-factor/GDK_SCALE/Xft.dpi or was
set for debugging by the user.
I think the logic should be:
- 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.
I guess text-scale-factor, text-scaling-factor are text related scales,
but we use it as a generic one, so why Xft.dpi should be different?
--
Best regards, Sergey.
More information about the swing-dev
mailing list