50

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

preview

4 Answers4

59

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
Jorge Castro
  • 73,717
1

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.

1

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

/usr/local/netbeans-8.0.2/etc/netbeans.conf

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"
dendini
  • 131
0

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: