Fork me on GitHub
#reveal
<
2020-08-04
>
Cris B00:08:31

@vlaaad You might want to note in the project README that users with hidpi screens may need to set the glass.gtk.uiScale system property to make Reveal's fonts readable. I did so by adding :jvm-opts ["-Dglass.gtk.uiScale=200%"] to the deps.edn Reveal alias.

vlaaad04:08:47

Hi Cris! Can you describe circumstances under which this property is needed? I have hidpi screen and the ui is automatically scaled both on Windows and Ubuntu...

vlaaad05:08:46

Side note — hidpi works for me on Java 11

EmmanuelOga09:08:19

does javafx really scale things up so easily tho? that's pretty cool 🙂 I wonder if it works w/o gtk. I'm guessing on windows gtk is not used

vlaaad10:08:27

Afaik javafx uses different renderer on different platforms, so gtk is probably Linux-only thing

seancorfield21:08:34

According to the docs I was just reading, JavaFX auto-scales for High DPI on both Windows and macOS (it hadn't used to do that in earlier versions). The gtk setting is Linux-specific because it cannot auto-scale on Linux apparently 😐

Cris B21:08:23

@vlaaad I'm not sure beyond my particular case, which is Ubuntu (20.04)/Gnome. Under either wayland or xorg, the Reveal UI was fine on my (regular old) external monitor, but unscaled, hence tiny, on the hidpi internal laptop screen.