UI scaling issues when physical and logical screen resolutions differ on Linux

Christopher Schnick crschnick at xpipe.io
Tue Feb 13 10:13:48 UTC 2024


Hello,

several users of our JavaFX applications have reported that the UI scale 
is too small when the physical and logical screen resolutions differ on 
Linux. For example in this case

there is an implicit scaling factor of 150% included as the monitor is a 
4k display but is using a lowered resolution of 2560x1440. This is then 
further stretched as the OS resolution is 1920x1080, but the main 
problem is that the 150% factor is somehow not getting picked up and 
JavaFX is treating this as a 4k display, thus making everything too 
small. For now these users can use -Dglass.gtk.uiScale=1.5 but that is 
not a nice solution to this problem.

Best
Christopher Schnick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240213/76ba4c0d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_20240125_115224(1).png
Type: image/png
Size: 194993 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240213/76ba4c0d/Screenshot_20240125_1152241-0001.png>


More information about the openjfx-dev mailing list