Ubuntu 中文环境下中文 NetBeans 编辑器字体无 AA

这个问题不是 JDK 中文支持的问题,JDK 中文支持问题请点这里

名词解释
AA: Anti-Aliasing 字体抗锯齿平滑技术,具体请 Google

话说以前一直用英文 Ubuntu+英文版 NetBeans,字体用 YaHei Consolas Hybrid,AA 完全正常
最近想换到中文环境,安装了中文支持,安装了中文版 NetBeans,打开 NetBeans 后界面中文字体完全正常,但是代码编辑区域的字体没有 AA 了。

screenshot_008

怀疑是安装中文支持时改动了字体配置,检查 /etc/fonts/conf.d 下的文件,折腾了好久都没搞定

偶然想到换回到英文 locale 试试看

切换中英文环境的方法:
菜单:系统 > 系统管理 > 语言支持,选则英文就行

再打开 NetBeans,这下又有 AA 了,而且 NetBeans 主页面也回到英文了。
这也就是说 NetBeans 是会自动检查当前系统 locale 而决定显示的语言。同时,编辑区域的字体 AA 应该也是跟 locale 有关。

google 后找到指定 NetBeans locale 的办法:
netbeans.conf 里 netbeans_default_options 后面加上: --locale en_US

再切换 Ubuntu 中文环境,打开 NetBeans,已经是英文界面了,编辑区域字体也正常
这只是临时的解决办法,期待完美解决办法

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
This entry was posted in Technologies, Tools and tagged , , . Bookmark the permalink.

3 Responses to Ubuntu 中文环境下中文 NetBeans 编辑器字体无 AA

  1. Darkredz says:

    好资料,先记下了

  2. soho21249 says:

    这个不错,nb使用Java开发的界面不好看,特别是在win下显示

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>