netbeans在ubuntu下字体看着很不舒服,整一个长条,很不清楚,查了一下,才发现是因为字体有锯齿化,在网上找到了解决办法:
找到netbeans设置文件,可以通过命令locate(whereis) netbeans.conf,一般是在/usr/local/netbeans-7.3.1/etc/netbeans.conf
修改一下配置:
sudo vi /usr/local/netbeans-7.3/etc/netbeans.conf
里面内容默认是:
# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="${HOME}/.netbeans/7.3"
# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-client
-J-Xverify:none -J-Xss2m -J-Xms32m -J-XX:PermSize=32m
-J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true
-J-Dsun.java2d.noddraw=true"
# Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx here
# or on the command line.
# If you specify the heap size (-Xmx) explicitely, you may also want to enable
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
# (see )
# Default location of JDK, can be overridden by using --jdkhome
:
netbeans_jdkhome="/home/hawk/ProgFiles/jdk1.6.0_18"
把上面蓝色部分加上一句,改成如下就行了:
netbeans_default_options="-J-client
-J-Xverify:none -J-Xss2m -J-Xms32m -J-XX:PermSize=32m
-J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true
-J-Dsun.java2d.noddraw=true -J-Dawt.useSystemAAFontSettings=on"
阅读(2306) | 评论(0) | 转发(0) |