Finally, it would be nice to get information about the actual screen DPI.
In my tests Screen.getDpi always returns 96, regardless of what it actually
is...
You can reflectively access Screen.getPixelScale() to learn if you're on
Retina. Of course, don't expect to swap out the JRE for a newer
Hi Jim,
interesting read. I guess I learned more about the topic than I can
help. Also found this resource interesting:
http://kynosarges.de/GuiDpiScaling.html
Some thoughts. Obviously it is less desirable to require every
application to do their own scaling. I can't imagine that this would
My usecase is not about retina or not. It is about showing a report
result in actual size which means I need to scale it depending on the
screen DPI.
Current workaround is this...
-Dcom.sun.javafx.screenDPI=109
...but I can't really advertise this to users.
Werner
On 18.02.2015 12:23, Mike
I'm currently investigating what changes we need to make to get Windows
HiDPI support up and running. As it stands, anyone with a Hi DPI
Windows machine will see all Java and JavaFX programs run very tiny
since the Java executables have declared that we are DPI Aware in the
program manifest