Wednesday, April 30, 2014

Fixing Netbeans font problem in Linux

Netbeans shows really awful fonts when you run it on Linux based systems. The reason behind is not actually Linux itself. It's the default arguments used to invoke the Java stuff that Netbeans uses. It, by default, never invokes Anti Aliasing. Thus for, the ugly fonts. Time to fix this. Source [ https://thomashunter.name/blog/enabling-anti-aliasing-in-the-netbeans-editor/ ]

ATTENTION: The following method will always start Netbeans with Anti aliasing on. If you want otherwise, you should try using the extra arguments with the command you use to invoke Netbeans.

1. First locate 'netbeans.conf'. I did that using the command
locate netbeans.conf
But, it usually is found in the directory
/usr/local/netbeans-[version]/etc/netbeans.conf

2. Open the file and look for the line
netbeans_default_options=

3. Between the quotes, you'll see some Java related arguments. What you have to do is, make the line look like this
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m
-J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true
-J-Dsun.java2d.noddraw=true -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=on"

3 comments:

  1. Anonymous9:17 PM

    Finally a fix that works. Thank you.

    ReplyDelete
  2. Anonymous10:33 PM

    My god, this really DOES WORK on NetBeans 8.1 in 2017. My god, thank you so much!

    ReplyDelete
  3. It worked fro me too :). Thanks

    ReplyDelete

Post your comment here. If you want to say something about programming problems, scripts, software etc, please try to be as descriptive as possible.

Connect Rapoo MT750S with Linux (Tested on Manjaro)

 I bought this obvious copy of MX Master 2S in hopes of having the device switching functionality along with a lightweight body because I ha...