Improve font rendering for IntelliJ IDEA / Pycharm in Ubuntu
Stock font rendering in Pycharm / Intelliji IDEA is horrible on Ubuntu. To improve it, change the following:
First of all, we need to install Infinality fonts:
Installed the patched OpenJDK with fontfix:
In $IDEA_HOME/bin/*.vmoptions add the following: (PS: $IDEA_HOME is the path to IntelliJIdea or Pycharm)
and in ~/.profile add
or whatever the installed java path is.
Reboot.
Start the IDE and enjoy perfect fonts.
First of all, we need to install Infinality fonts:
sudo add-apt-repository ppa:no1wantdthisname/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fontconfig-infinality
sudo /etc/fonts/infinality/infctl.sh setstyle linux
sudo gedit /etc/profile.d/infinality-settings.sh
# and set
USE_STYLE="UBUNTU"
Installed the patched OpenJDK with fontfix:
sudo apt-add-repository -y ppa:no1wantdthisname/openjdk-fontfix
sudo apt-get update
sudo apt-get install openjdk-7-jdk
In $IDEA_HOME/bin/*.vmoptions add the following: (PS: $IDEA_HOME is the path to IntelliJIdea or Pycharm)
-Dawt.useSystemAAFontSettings=lcd
-Dswing.aatext=true
-Dsun.java2d.xrender=true
and in ~/.profile add
export PYCHARM_JDK=/usr/lib/jvm/java-1.7.0-openjdk-amd64"
or whatever the installed java path is.
Reboot.
Start the IDE and enjoy perfect fonts.
Hey! Thanks for the guide, I was about to get rid of IntelliJ because of ugly fonts, and it was pity coz generally I liked the suite. Now all is fine and fonts are better than in Komodo :-)
ReplyDeletethanks ! gonna try this and i hope it's going to work
ReplyDeleteIt works ! Thanks :)
ReplyDeleteThanks! it was clear and it works perfectly!
ReplyDeleteThanks! Works like a charm!
ReplyDeleteAwesome, thanks a lot!
ReplyDelete