Gradle Sync Failed: Repairing a project after an Android Studio upgrade
JQuery Venetian Blinds Transition Effect
Native Linux Space Warfare: Freespace 2
Enforce Coding Standards with PHP_CodeSniffer and Eclipse IDE on Ubuntu Linux
Getting Set up with Ogre 3D on Ubuntu
Installing Xdebug for use with Eclipse or Netbeans on Linux

Fix Ugly Fonts in Netbeans under Linux

Monday, 11 November 13, 7:00 am
By default, Java doesn't use anti-aliasing on fonts in AWT applications. It's been available for some time however, and can be switched on with the awt.useSystemAAFontSettings setting.

To enable anti-aliased fonts just for Netbeans, add -J-Dawt.useSystemAAFontSettings=on to the end of the netbeans_default_options line in /usr/share/netbeans/etc/netbeans.conf e.g.:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dawt.useSystemAAFontSettings=on"
Alternatively, you can set this globally so that all AWT apps are affected, by setting the _JAVA_OPTIONS environment variable in your .bash_profile:
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'
This also has Swing equivalent, using the swing.aatext preference. You'll have to log out and log back in for this to take effect.

Please enter your comment in the box below. Comments will be moderated before going live. Thanks for your feedback!

Cancel Post

/xkcd/ PhD Timeline