Ugly text rendering
Beep6581 opened this issue · 4 comments
Hello
The text rendered in all panels is ugly:

The text rendered in tooltips is nice (see the model.option.useXRender tooltip):

Can I do anything to make the text render nicely?
nightly-2018-04-07-4-g d4c2588
$ java -version
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (IcedTea 3.7.0) (Gentoo icedtea-3.7.0)
OpenJDK 64-Bit Server VM (build 25.161-b12, mixed mode)
Seems like an anti-alias setting is disabled or turned off.
Adding this to the command line solved it:
-Dawt.useSystemAAFontSettings=on
More options: https://wiki.archlinux.org/index.php/Java_Runtime_Environment_fonts#Basic_settings
My full launcher command-line:
java -Xmx2G -Dsun.java2d.opengl=true -jar "$HOME/programs/code-freecol/FreeCol.jar" --freecol-data "$HOME/programs/code-freecol/data"I will leave the closing of the issue to you.
Now I add a freecol alias to ~/.bashrc as follows:
alias freecol='java -Xmx1G -Dsun.java2d.opengl=true -Dawt.useSystemAAFontSettings=on -jar "$HOME/programs/code-freecol/FreeCol.jar" --freecol-data "$HOME/programs/code-freecol/data"'
When I want to run freecol, I just type "freecol" without having to cd anywhere.
Yep, Java/OS/whatever defaults change and make FreeCol look ugly. Not a lot we can do about it, but thanks Beep6581 for finding the work around.

