-
Notifications
You must be signed in to change notification settings - Fork 29
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
Proper GUI scaling on HiDPI displays. #137
Comments
Note to self: the following settings are mentioned on the internets for adjusting scaling or dealing with HiDPI problems:
|
MacBook Pro (16-inch, 2019) GATE 9.0-SNAPSHOT build 81d16d5 started at Sat Jan 23 17:17:33 GMT 2021 Everything looks normal |
Dell XPS-13 with Ubuntu 16.04 3200x1800 display with the scale for menu and titlebars set to 2 Under Java 8 this results in a tiny little version of GATE that's half the size it should be. |
@greenwoodma do the workarounds also work for you when the GATE is tiny under Java 8?
|
No. If I use either on their own and Java 8 then it's still tiny, even using both at the same time makes no difference. |
OK so it seems behaviour depends on both the Java and Ubuntu versions. |
Yes, it looks like you have different display options (i.e. fractional scaling) which I don't in 16.04 so my guess is this affects the numbers that Java retrieves from the OS and hence how it then scales things; one of the numbers used deep in the scaling comes from the AWT Toolkit under the property name "gnome.Xft/DPI" |
Tested on a laptop with Ubuntu 20.04.1, 2880x1620 resolution set to 200% scaling in the default window manager. Tested with both the "fractional scaling" option enabled and disabled.
Tested to run a freshly installed revision 9532ab9 and also
on a freshly compiles (with Java 8) revision 81d16d5
Tested with Java versions:
All three showed the splash screen and GUI without scaling.
Workarounds that worked for me in these cases:
GDK_SCALE=2.0
before runningSame with the Mate window manager
The text was updated successfully, but these errors were encountered: