Tuesday, April 27, 2010

GNU/Linux Java Font Antialiasing

Set java '-Dawt.useSystemAAFontSettings=on' system property.

~/.profile
export PATH=~/bin:$PATH
export JDK_HOME=$JAVA_HOME
export M2_HOME=$MAVEN_HOME
export ORACLE_HOME=/opt/instantclient

# not set TERM in .bashrc because it resets tmux 'screen' TERM setting
export TERM=rxvt

export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"

Everytime some java application starts it will report:

Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on