Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScaleFactor determination via system font size does not work with Java 9 #17

Open
FStupar opened this issue Oct 31, 2017 · 0 comments
Open

Comments

@FStupar
Copy link

FStupar commented Oct 31, 2017

Getting the system font via Toolkit.getDefaultToolkit().getDesktopProperty("win.messagebox.font");

will return 12 no matter how scaled the display is.
I would like to either make a pull request for Java 9 using getDefaultToolkit().getScreenResolution() (which returns correct values -> 96 scaled by the percentage how much the display is enlarged) or you could implement the change (since i'm sure you know your code much better than i do :) )

EDIT: there already is the getScreenScale() method which now works on Win with Java 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant