Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Why does the "monospace" font look great in Terminal and gedit, and terrible in IntelliJ IDEA? IDEA uses Java's Swing library, and I understand it might be an issue with this. Is there a known fix?

share|improve this question

I have the same problem. Apparently its a problem with the "hinting" level of the font, which IntelliJ forces to "full" no matter what the OS selects. This makes the fonts look jagged and thin rather than how its supposed to. There was a workaround I saw on a website, but it didn't work for me.

share|improve this answer
Hmm thanks for the hint (geddit?!?!) I'll take a look into that. – Alison Mar 24 '11 at 11:20
@user10669 You mention the existence of a workaround...could you add the link here anyway? – Christopher Kyle Horton Jan 27 '12 at 7:03

Generally, all Java software has poor font rendering under Linux. You’ll see this also under Windows, the fonts look different. It’s not a IntelliJ IDEA problem, but Java’s.

share|improve this answer
Not so. Eclipse is java based, but perfectly renders the same font. – matt Nov 7 '15 at 7:59

Hi I wrote a little manual howto fix this

sudo add-apt-repository ppa:no1wantdthisname/openjdk-fontfix
sudo apt-get update
sudo apt-get install openjdk-7-jdk

Script to start Intellij Idea

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


export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd \
export GNOME_DESKTOP_SESSION_ID=this-is-deprecated
exec $IDEA_HOME/bin/ "$@" 

more info and screenshots of better fonts:

share|improve this answer
I edit the answer – Yaroslav Urshulyak Jul 11 '14 at 10:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.