Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

3 Answers 3

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
1  
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? –  WarriorIng64 Jan 27 '12 at 7:03
add comment

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
add comment

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

#!/bin/sh

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

more info and screenshots of better fonts: http://urshulyak.com/?p=478

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

Your Answer

 
discard

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.