Tried installing Consolas on Ubuntu 12.04 as suggested here but the font is not visible in the settings of IntelliJ Idea CE IDE.
I also copied the font to
/usr/lib/jvm/jdk1.6.0_30/jre/lib/fonts and did
sudo fc-cache. Now the font is visible in Gedit but is still not visible in IntelliJ Idea and it not visible in Libre Office3.