I confirm that on my Debian sid+experimental system, fonts look OK in openjdk-11.
I tried to investigate the problem in Ubuntu cosmic by first trying to determine which fonts are used by the JRE. I used this command:
cat /proc/$(pidof java)/maps | grep font
and only found files from /var/cache/fontconfig/ and no actual font files.
Other applications have files from /usr/share/fonts/, but not the JRE.
Without this I do not know where to look further :<...
> updating other gtk pacakges did [fix the issue]
Indeed.
I confirm that on my Debian sid+experimental system, fonts look OK in openjdk-11.
I tried to investigate the problem in Ubuntu cosmic by first trying to determine which fonts are used by the JRE. I used this command:
cat /proc/$(pidof java)/maps | grep font
and only found files from /var/cache/ fontconfig/ and no actual font files.
Other applications have files from /usr/share/fonts/, but not the JRE.
Without this I do not know where to look further :<...