更改netbeans中的默认字体?

时间:2012-08-18 20:18:53

标签: netbeans netbeans-7

是否可以更改netbeans中的默认字体?文档说:

  

Monospaced字体适用于不同系统上的不同字体。   在Windows上,它映射到“Courier”,在Linux上映射到   “Lucida打字机”。

http://ui.netbeans.org/docs/ui/editor_fonts_colors/Editor_fonts_and_colors.htm

我在Windows上并希望将Monospaced字体映射到'Consolas'而不是'Courier'。

P.S。我知道可以很容易地从选项中更改字体,但是当我以这种方式更改它时,我不能再使用unicode字符了。猜猜我需要做他们称之为“映射”等宽字体到其他字体的东西。

6 个答案:

答案 0 :(得分:6)

工具>选项>字体和颜色

设置类别"默认",在其右侧,设置您要使用的字体。

如果这不能解决问题,请尝试添加:

--laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd

-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd --laf Metal

到文件:netbeans.conf。您可以在$NETBEANS_HOME/etc/文件夹中找到它。从系统首选项中缩小应用程序字体。

答案 1 :(得分:3)

To change the font size outside of the editor you can configure by editing the Net Beans conf file, you can find it here: C:\Program Files\NetBeans 8.0.2\etc\netbeans.conf

Then edit this line: netbeans_default_options="..."

by adding this at the end:

--fontsize 18

I hope it helps :-)

答案 2 :(得分:3)

现在生活变得更加容易。只需从工具菜单中选择选项,然后按照以下屏幕截图中的步骤进行操作,并注意步骤3和4,它们是所有语言的默认字体:

enter image description here

答案 3 :(得分:1)

我有一个名为“UI-Editor”的NetBeans插件,它允许您自定义几乎任何Swing属性,包括字体大小,颜色和类型。转到工具 - >插件并搜索“UI-Editor”或访问:http://plugins.netbeans.org/plugin/55618/?show=true

答案 4 :(得分:0)

也不要忘记将字体更改为支持阿拉伯语的字体,例如Arial,我不确定是否有人提到我刚试过它

答案 5 :(得分:-2)

据我所知,没有办法做到这一点。 jEdit(http://jedit.org)也使用Swing和DOES对所有字体进行字体替换 - 全局选项>中有一个“自动字体替换”复选框。文本区域以及首选字体列表。但是jEdit没有Netbeans那么强大。