Fedora19中开启NetBeans 7.4的字体反锯齿

NetBeans的安装路径是 /usr/local/netbeans-7.4/

用vim打开安装路径下的配置文件 etc/netbeans.conf,注意要sudo。

找到下面这行:

netbeans_default_options=”-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true”

在括号最后添加上反锯齿选项,最后变为:

netbeans_default_options=”-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd”

因为是只读文件,所以用“:wq!”保存,然后重启NetBeans后就能看到效果了~