Showing posts from November, 2014

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:
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/ setstyle linux
sudo gedit /etc/profile.d/
# and set
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)
and in ~/.profile  add
export PYCHARM_JDK=/usr/lib/jvm/java-1.7.0-openjdk-amd64"

or whatever the installed java path is.


Start the IDE and enjoy perfect fonts.

Ubuntu - Fix large fonts for Google Chrome in Address Bar and Bookmarks bar

Since version 35, chrome switched to Aura framework and does not follow GTK theme anymore. This leads to large font size in address bar, and bookmarks bar.

However, it grabs font size settings from org.gnome.desktop.interface "font-name" property. To fix this, run the following command:
gsettings set org.gnome.desktop.interface font-name 'Ubuntu 10'
# or
gsettings set org.gnome.desktop.interface font-name 'Ubuntu 11'
# depending on your preferences
You must restart chrome for this to work.