Saturday, November 26, 2016

Fixing Netbeans font problem in Linux

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. Its 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, youll 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"


Go to link download