Skip to content

Instantly share code, notes, and snippets.

@kirilkirkov
Created February 13, 2018 20:45
Show Gist options
  • Save kirilkirkov/0d6f3645306ddae8ce67adfa590fcceb to your computer and use it in GitHub Desktop.
Save kirilkirkov/0d6f3645306ddae8ce67adfa590fcceb to your computer and use it in GitHub Desktop.
Fix Ugly Fonts in Netbeans under Linux
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.
@soaresrodrigo
Copy link

Perfect, congratulations!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment