3 ms·
Actually, Java Swing and JavaFX do scale. JavaFX does not scale on Linux, though, because it uses GTK to determine the scale ratio, and GTK is still broken. Qt
by kuschku 10y ago
Actually, Java Swing and JavaFX do scale. JavaFX does not scale on Linux, though, because it uses GTK to determine the scale ratio, and GTK is still broken.
Qt’s had QT_SCREEN_SCALE_FACTORS=DisplayPort-2=1.75;HDMI-A-0=1.08; for years, but GTK still only supports one global scale factor, and that’s limited to 96dpi or 192dpi.
So JavaFX only scales to these, while Java Swing scales perfectly (but still only handles one global scale factor)