Alloy gui broken on asahi fedora

Hi. I wish to use Alloy, but its gui is shucked. Text is blurry, menu bar doesn’t work.

This is how it looks like:


Macbook M1 Pro
Fedora Linux Asahi Remix 40
sway wm (wayland)

Runs ok on MacOS, but I do my dev work on linux and I would like to stay there. I tried compiling it here, but it looks like gradle doesn’t understand that java 8 is installed with

Execution failed for task ‘:org.alloytools.api:compileJava’.
> invalid source release: 17

No clue how to debug it further, 0 java experience.

It looks like your Java Runtime is rendering fonts with broken anti-aliasing (supposedly it is an old algorithm for smaller screens). I do not think re-compiling would help there.

You can try setting the antialiasing options for JRE in the environment variable:

JAVA_TOOL_OPTIONS='-Dawt.useSystemAAFontSettings=gasp'

Reference:
https://wiki.archlinux.org/title/Java_Runtime_Environment_fonts

Referenced article uses _JAVA_OPTIONS, which is undocumented and would overwrite command line arguments, and is discouraged.

thank you very much for setting me on course.
I changed it to =on, as well as exporting _JAVA_AWT_WM_NONREPARENTING=1. The text is alright now (although still a bit fuzzy, but that’s not a big price to pay), and the screen resizes with the window and the menu-bar is functional.