After updating ubuntu to 12.04 all fonts got bold. I haven't installed themes or configured fonts.

from netbeans about:

Product Version: NetBeans IDE 7.1 (Build 201112071828)

Java: 1.7.0_03; Java HotSpot(TM) 64-Bit Server VM 22.1-b02


  • 2
    add '--laf Nimbus' at the command. Netbeans will look a little different but the fonts will look like before. Your Command: /bin/sh "/home/whatever/netbeans-7.1.2/bin/netbeans" --laf Nimbus May 9, 2012 at 20:10
  • 1
    Open queue voters, this question is getting a bunch of traffic, perhaps we should keep it open as it seems to be actively solving people's problems. Sep 10, 2013 at 13:36

4 Answers 4


This is a bug:

In the first link, there is a comment that will point you to another bug. There you can find the following solution:

sudo apt-get remove fonts-unfonts-core
  • 3
    sudo apt-get remove fonts-unfonts-core solved my problems. Thank you.
    – Bakhtiyor
    Feb 1, 2013 at 9:15
  • sudo apt-get remove fonts-unfonts-core solved my problems. Thank you
    – loostro
    Aug 6, 2013 at 9:40
  • Works like a charm! I have been using netbeans 7.3 on ubuntu 12.10 then i upgraded java from 1.6 to 1.7 thats when i got this font issue. After running this command everything went back to normal
    – indago
    Oct 7, 2013 at 12:03
  • 3
    I think this issue surfaces upon installation/upgrading of WINE as fonts-unfonts-core was selected when upgrading WINE from the official Ubuntu repository's 1.4.* to the official WINE-development repo's 1.7.7 (with Ubuntu 13.04).
    – Alastair
    Dec 3, 2013 at 11:56
  • Yeah, I also recently installed WINE, after which Netbeans started to look wonky.
    – Martin T.
    Jan 6, 2014 at 11:26

My Netbeans was showing the IDE font as all italics after an OS upgrade. I ran the command sudo apt-get install fonts-unfonts-core and this resolved the problem.


The accepted solution of removing fonts of course works but it's not very elegant

sudo apt-get remove fonts-unfonts-core

instead you can simply change options in Netbeans by editing the file


which you can also find with a simple

find / -name netbeans.conf

and then add the following line to netbeans options:

-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd --laf Metal

so you should get a line similar to:

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd --laf Metal"

In the comments of the bug, there is also a blog post listing two other solutions to solve the problem rather than removing the the fonts:

  • 1
    Link only answers are discouraged here. Please edit your answer and include the main parts of the article here.
    – Parto
    Apr 25, 2014 at 9:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .