IntelliJ Bad Font Rendering [duplicate]

I've recently installed IntelliJ on my Ubuntu system and realized that the font I want to normally use Monaco doesn't render properly in IntelliJ. So, the problem was slightly fixed from this post however the editor would still not render properly with Monaco;

This is currently the state of my IDE:

enter image description here


I wrote a little manual howto fix this.

wget http://urshulyak.com:8001/index.php/s/P4afbWaX3mvyjP7/download && tar -zxvf jdk-8u5-tuxjdk-b08.tar.gz && sudo mv jdk-8u5-tuxjdk-b08 /usr/lib/jvm && rm jdk-8u5-tuxjdk-b08.tar.gz

Script to start Intellij Idea

*only note that need to change IDEA_HOME location for your path of idea

#!/bin/sh

IDEA_HOME=/opt/idea
export JAVA_HOME=/usr/lib/jvm/jdk-8u5-tuxjdk-b08/
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd \
                      -Dsun.java2d.xrender=true"
export GNOME_DESKTOP_SESSION_ID=this-is-deprecated
exec $IDEA_HOME/bin/idea.sh "$@"

More info and screenshots of better fonts: http://urshulyak.com/page/show/2 Result: enter image description here


So, I actually figured it out with some research and playing around; heres how you can do it on your side:

Requirements:

  1. Stable Internet connection
  2. Root access to your system

Steps:

We first need to install TuxJDK:

  1. Go on the link above and download the JDK;

  2. Once downloaded the JDK extract the folder named jdk-8u5-tuxjdk-b08;

  3. We're now going to move the folder into /usr/lib/ using Terminal

sudo mv FOLDERPATH /usr/lib/

Then, we're going to get IntelliJ to use TuxJDK:

  1. Go to your IntelliJ path;

  2. Then go into IDEAPATH/bin;

  3. Edit idea.sh using nano or gedit;

    sudo nano idea.sh
    
  4. Go all the way down and you should see a command starting with eval you want to change that command to this:

eval "/usr/lib/jvm/jdk-8u5-tuxjdk-b08/bin/java" $ALL_JVM_ARGS -Djb.restart.code=88 $MAIN_CLASS_NAME "$@"
  1. Save the file and open up IntelliJ IDEA.