Created
February 13, 2018 20:45
-
-
Save kirilkirkov/0d6f3645306ddae8ce67adfa590fcceb to your computer and use it in GitHub Desktop.
Fix Ugly Fonts in Netbeans under Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perfect, congratulations!