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.

All fonts in java applications look horrible. I have seen a few questions about this previously, but they are quite old now (11.04 was the most recent, but that didn't seem to be the same problem). For some reason java applications do not use the system font (Ubuntu 11), but rather some elongated font that doesn't seem to have any anti-aliasing. So what I'm asking is if this is an open bug (couldn't find any on launchpad), something the developers have done wrong, or if there is a way to configure the fonts used in java application. Perhaps this is just a shortcoming of openjdk and I should install the Sun/Oracle version instead?

Following is an image of jitsi, but the problem is also present in minecraft, my internet-bank and anything else involving java. I'm on 12.04, but since I couldn't find anything on launchpad I'm assuming that isn't relevant.

picture of jitsi

share|improve this question
    
Open jdk have some problemw with fonts ,installing sun/oracle jdk may fix this –  Tachyons Mar 28 '12 at 17:16
    
Ok. I'll try that now :) –  Eirik Berg Mar 28 '12 at 17:20
    
Installing the closed source java is okay, but try it with the 'Duinsoft' way. It's an automated installer :) duinsoft.nl/packages.php?t=en –  tiempjuuh Mar 28 '12 at 17:31
    
Installed java from a ppa i found at Webupd8 (webupd8.org/2012/01/…). It did not work at all and I am unable to remove it. I'm getting this: dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 10. It also seems like the oracle version of java has shitty fonts as well: cdn.unixmen.com/wp-content/uploads/2012/03/java7-precise.png –  Eirik Berg Mar 28 '12 at 17:47

1 Answer 1

I haven't test it but according to this forum post at inductiveautomation.com you can correct it by installing the fonts:

sudo apt-get install msttcorefonts

and changing lucidasans for arial in the properties of Java fonts:

sudo nano /usr/lib/jvm/java-6-sun/jre/lib/fontconfig.properties

There's also some useful links you can find at this StackOverflow question.

share|improve this answer

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.