---
title: "linux 下 NetBeans 字体大小设置"
author: "tycomputer"
date: "2012-05-09T17:33:19Z"
tags: []
categories: ["编程语言"]
slug: "linux-netbeans"
draft: false
lastmod: "2012-05-09T17:33:19Z"
id: 1520572
url: "https://tycomputer.iteye.com/blog/1520572"
---

在linux mint 12下安装了 NetBeans7.1.2使用之后，觉得字体不好看，字体普遍特别大，分三个方面改NetBeans的字体。

1. 代码字体大小
点击NetBeans菜单，工具-->选项-->字体颜色-->语法，最好先新建一个配置文件哦，如下图：

![](http://dl.iteye.com/upload/attachment/0067/8330/478e930a-728c-309f-8a26-c0bc6471f4c8.png)

2. 菜单的字体大小，有两个方法
          一、修改系统的字体，即application font，不推荐这种方法

![](http://dl.iteye.com/upload/attachment/0067/8332/69c84f82-9c71-3766-9557-9d4ae8b4fb90.png)


          二、使用Nimbus look and feel
修改在netBeans/etc目录下netbeans.conf启动文件来实现，在netbeans_default_options里添加下面代码

```java
--laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd 
```


![](http://dl.iteye.com/upload/attachment/0067/8338/547209bc-0906-3513-94ba-30a105364dcb.png)

3.  改变output window的字体大小
修改在netBeans/etc目录下netbeans.conf启动文件来实现，在netbeans_default_options里添加下面代码

```java
--fontsize 10
```