netbeans在ubuntu下字体看着很不舒服,整一个长条,很不清楚,查了一下,才发现是因为字体有锯齿化,在网上找到了解决办法:
找到netbeans设置文件,可以通过命令locate(whereis) netbeans.conf,一般是在/usr/local/netbeans-6.8/etc/netbeans.conf
修改一下配置:
sudo vi /usr/local/netbeans-6.8/etc/netbeans.conf
里面内容默认是:
# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="${HOME}/.netbeans/6.8"
# 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 http://wiki.netbeans.org/wiki/view/FaqGCPauses)
# Default location of JDK, can be overridden by using --jdkhome <dir>:
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"
ubuntu下netbeans字体调整
最新推荐文章于 2021-09-23 21:17:01 发布