https://github.com/mageddo/idea-ugly-fonts-fix/tree/master
The explanation below can work but is not maintened
$ JDK_LINK="http://googledrive.com/host/0BwBEh4QJvkXjQzIxSFJtal9LNXM" # x64 bits
$ TAR_NAME="/tmp/jdk1.8.0-amd64-font-fixed.tar.xz"
$ curl -L $JDK_LINK > $TAR_NAME
tar: jdk1.8.0-amd64-font-fixed/man/ja: Cannot create symlink to ‘ja_JP.UTF-8’: File exists # no problem here
tar: Exiting with failure status due to previous errors
$ sudo tar -xf $TAR_NAME -C /opt/
$ sudo add-apt-repository ppa:no1wantdthisname/openjdk-fontfix
$ sudo apt-get update
# and choose your jdk version
$ sudo apt-get install openjdk-7-jdk
$ sudo apt-get install openjdk-8-jdk
#!/bin/sh
# setting the fixed jdk to the default only in this terminal
export JAVA_HOME=/opt/jdk1.8.0-amd64-font-fixed
# enabling the fix on intellij
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd \
-Dsun.java2d.xrender=true"
# starting idea
IDEA_HOME=/opt/idea
$IDEA_HOME/bin/idea.sh
(As above)
create a gtkrc file to set the font size
$ touch $IDEA_HOME/.gtkrc
# with the follow content
style "user-font" {
font_name = "Monospace 2"
}
widget_class "*" style "user-font"
gtk-font-name="Monospace 2"
Create idea fixed start script
$ touch $IDEA_HOME/idea-fixed
# with the follow content
#!/bin/sh
# setting the fixed jdk to the default only in this terminal
export JAVA_HOME=/opt/jdk1.8.0-amd64-font-fixed
# enabling the fix on intellij
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd \
-Dsun.java2d.xrender=true"
# starting idea
IDEA_HOME=/opt/idea
export GTK2_RC_FILES=$PWD/.gtkrc
$IDEA_HOME/bin/idea.sh
Keywords
java idea jetbrans intellij idea jdk swing font-fix font fix gtk linux