Monday, August 10, 2015

Font fix for openjdk in Ubuntu (Intellij IDEA needs this especially)

Install the patched openjdk (PPA: openjdk-fontfix)

Edit idea64.vmoptions

For me this file is in /home/kaiyin/opt/ideac/bin/idea64.vmoptions, add the following lines.

-Dawt.useSystemAAFontSettings=lcd
-Dswing.aatext=true
-Dsun.java2d.xrender=true

It might be even better to put these options in HOME/.profile ~/.bashrc etc:

# make sure intellij uses openjdk
export IDEA_JDK="/usr/lib/jvm/java-8-openjdk-amd64"
export _JAVA_OPTIONS="-Dswing.aatext=true -Dawt.useSystemAAFontSettings=lcd  -Dsun.java2d.xrender=true -Xms1g -Xmx75g"

0 comments: