Weird font rendering in Netbeans on Linux / Ubuntu

I had the same issue using Ubuntu and I resolved it this way:

Edit your netbeans.conf and add this line in your “netbeans_default_options” string

-laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd”

so you finally have something like:

> 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 –laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s