Open gluon-bot opened 8 years ago
Original comment by Bart van der Bilt (Bitbucket: bbplotters, GitHub: Unknown):
JavaFX9 is released with HiDPi scaling on Linux. Why doesn't it work?
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)
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.
sudo nano /opt/scenebuilder/bin/SceneBuilderLauncher.sh
#!/bin/bash
export GDK_SCALE=2
/opt/scenebuilder/bin/SceneBuilder "$@"
Then made it executable
sudo chmod +x /opt/scenebuilder/bin/SceneBuilderLauncher.sh
And finally changed what the desktop-launcher is starting
sudo nano /usr/share/applications/scenebuilder-SceneBuilder.desktop
[Desktop Entry]
Name=SceneBuilder
Comment=Scene Builder
Exec=/opt/scenebuilder/bin/SceneBuilderLauncher.sh
Icon=/opt/scenebuilder/lib/SceneBuilder.png
Terminal=false
Type=Application
Categories=Unknown
MimeType=
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 apt install
. Running it via provided Ubuntu desktop launcher, except for my scaling fix.
Hi @amalic ,
Debian package comes with JavaFX version 16. Can you run Scene Builder JavaFX 17-ea+14
to check if the issue is resolved?
Just follow these steps:
17-ea+14
mvn install && mvn javafx:run -f app
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?