Reputation: 343
Screen.getDPI() is returning correct values on macOS on multiple monitors and builtin display, while both running on the JVM and AOT compiled with mvn gluonfx:build etc.
Once the app is built for iOS and installed, the value being returned by getDPI() on an iPad Pro is the same as the native height of the display, ie 1668, instead of the expected 264. This is with macOS 10.15, iOS 15.2, javafx 17.0.1, gluonfx plugin 1.0.11-SNAPSHOT which uses a tweaked substrate version to code sign using Xcode 12.
I've used the equivalent approach with some success considering OS idiosyncrasies in AWT/Swing to accurately size on screen paper sizes to provide a true WYSIWYG experience. Porting this app to JavaFX / glisten should I not expect this approach to work with iOS and GraalVM etc, or is this potentially a bug I should file?
Upvotes: 0
Views: 62