Skip to content

Instantly share code, notes, and snippets.

@aegyed91
Forked from leemour/FontFix RubyMine
Last active August 29, 2015 14:06
Show Gist options
  • Save aegyed91/6580548808a2828b0cb1 to your computer and use it in GitHub Desktop.
Save aegyed91/6580548808a2828b0cb1 to your computer and use it in GitHub Desktop.
# Change Java Runtime:
sudo update-alternatives --config java
# Delete Open-JDK
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
# Install OpenJDK with FontFix
$ sudo apt-get install libfreetype6
# install font fixed OpenJDK (https://launchpad.net/~no1wantdthisname/+archive/openjdk-fontfix)
$ sudo add-apt-repository ppa:no1wantdthisname/openjdk-fontfix
$ sudo apt-get update
$ sudo apt-get install openjdk-7-jdk
To use this JDK only for IntelliJ, prepend this line to bin/idea.sh:
IDEA_JDK="/usr/lib/jvm/java-1.7.0-openjdk-amd64"
# JVM options
Add the following options to the .vmoptions file of IntelliJ
-Dawt.useSystemAAFontSettings=lcd
-Dswing.aatext=true
-Dsun.java2d.xrender=true
Also add them globally
$ sudo vim /etc/profile.d/java_opts.sh
export _JAVA_OPTS="-Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -Dsun.java2d.xrender=true"
# Perform a reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment