Chinaunix首页 | 论坛 | 博客
  • 博客访问: 75821
  • 博文数量: 14
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 159
  • 用 户 组: 普通用户
  • 注册时间: 2013-07-13 18:38
文章分类

全部博文(14)

文章存档

2013年(14)

分类: LINUX

2013-08-01 16:17:13

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"
阅读(1989) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~