-
Notifications
You must be signed in to change notification settings - Fork 221
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
Linux HIDPI support #66
Comments
Original comment by Frederik Bertling (Bitbucket: Burtan, GitHub: Burtan): I agree that the Scenebuilder is not useable on 4k Linux. However, scaling on Windows and Mac is not achieved by SceneBuilder but by JavaFX. Thus we have to wait until javaFX supports scaling on Linux (scheduled for JavaFX9 afaik) or that Gluon implements custom css scaling for Linux (unlikely to hapen) |
Original comment by Bart van der Bilt (Bitbucket: bbplotters, GitHub: Unknown): JavaFX9 is released with HiDPi scaling on Linux. Why doesn't it work? |
Update from OpenJFX SB Approved-by: Jose Pereda <[email protected]> Approved-by: Joeri Sykora <[email protected]>
Any news when this will be fixed? Here's my workaround for Ubuntu 20.04 LTS based on this Oracle ticket. I ended up adding a shell-script which launches SceneBuilder after setting GDK_SCALE environment variable.
#!/bin/bash
export GDK_SCALE=2
/opt/scenebuilder/bin/SceneBuilder "$@" Then made it executable And finally changed what the desktop-launcher is starting
I am doing the same in my IDE's launch configs for JavaFX apps. |
@amalic The oracle ticket linked by you has been fixed in OpenJFX 17. Can you still reproduce the issue while running Scene Builder with JavaFX 17-ea builds? |
Yes. I think it has to do with fractional scaling. GDK_SCALE is per default set to 1.25. My guess is that JavaFX converts it to an integer? |
Strange, I can't reproduce the issue when using 125% scaling on Ubuntu 20.04.2 LTS and running from master on JavaFX 17-ea+14. |
Really strange. Maybe it's a driver or version thing (NVidia CUDA drivers, Open JDK 16, ...). Or my second screen which is rotated by 90°> |
How are you running Scene Builder? |
I installed the Debian package via |
Hi @amalic , Debian package comes with JavaFX version 16. Can you run Scene Builder JavaFX Just follow these steps:
|
Originally reported by: Karel Van Hecke (Bitbucket: karelvanhecke, GitHub: karelvanhecke)
The application is completely unusable with a high resolution display. Since it already has HiDPI scaling on Windows, would it be possible to add HiDPI scaling on linux?
The text was updated successfully, but these errors were encountered: