Font size in Netbeans does not match GTK theme

Bug #669159 reported by Sebastian Gaul on 2010-10-31
This bug affects 61 people
Affects Status Importance Assigned to Milestone
netbeans (Ubuntu)

Bug Description

Binary package hint: netbeans

As you can see on my screenshot the font size in Netbeans is disturbingly bigger as the system's default. This is a fresh Maverick install so I guess this is a general issue with Netbeans. Perhaps somebody can confirm this.

I can change font sizes in Netbeans settings. Unfortunately these changes only affect the editor itself.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: netbeans 6.9-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic
Uname: Linux 2.6.35-22-generic x86_64
Architecture: amd64
Date: Sun Oct 31 18:05:33 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
PackageArchitecture: all
SourcePackage: netbeans

Jorge Castro (jorge) on 2012-04-26
Changed in netbeans (Ubuntu):
status: New → Confirmed
Ashfame (ashfame) wrote :

This is how it looks on mine after upgrade

Flatline (luciano-longo) wrote :

This affects me as well, but the problem started right after I upgraded to Ubuntu 12.04, it never happened before...
And since netbeans uses bold in tabs to indicate an unsaved modified file, it's really annoying. Here's a screenshot.

Hanine HAMZIOUI (hanynowsky) wrote :

You can revert to Metal Look and Feel which is the Swing Native LAF.

Here is how to fix it either in 11.10 or 12.04

Flatline (luciano-longo) wrote :

Thanks a lot hanynowsky! I hope this get's fixed, because Metal looks horrible, but at least it solved the bold font issue.
Is Metal the only native LAF?

Luis Lobo (luislobo) wrote :

Same here! Just upgraded from 11.10 to 12.04

After upgrade to 12.04 Netbeans font become bold and items menu almost invisible.

Same problem here after upgraded from oneiric to precise.

But I resolved with Metal L&F, is not the same thing but is better than before...

Abdullah Battal (battal84) wrote :

Same problem here, I've recently upgraded from 11.10 to 12.04 and Netbeans fonts got bold. It got difficult to distinguish files that need to be saved.

Dmitry Banasko (dimon-bad) wrote :

>> Metal looks horrible
>> Is Metal the only native LAF?
I have the save question. Anybody knows ?

Espen Meidell (espen-meidell) wrote :

This problem seems to affect all java swing applications using the system look and feel.

Dac Chartrand (conner-bw) wrote :

I upgraded from 10.04 LTS to 12.04 LTS. This affects all my Java apps. What looked reasonable before, looks terrible now.

Another workaround until this isn't fixed:

Try using another JVM. This problem seems to be happening only in Oracle Java 7.

Tested here with Sun Java 6 and fonts got rendered normally, without bold. You can try Sun Java 6 or OpenJDK ones.

lleming (lleming) wrote :

change default font in gnome to Dejavu Sans and everything will be fine. Oracle java 7 doesnot work with some of font families

Neven Blazic (nevenblazic) wrote :

This is also happening to me with ubuntu 12.04 and open jdk 7 ...

another_sam (anothersam) wrote :

Same problem with Ubuntu 12.04, OpenJDK 7, and NetBeans 7.1.2.

Changing system font to DejaVu Sans with MyUnity fixes menu font.

Changing NetBeans' default font to DejaVu Sans Mono, fixes code font.

Also want to note that, I did not have this problem just after installation of NetBeans.

Dac Chartrand (conner-bw) wrote :

I'm a Java user, not a Java developer, but based on the feedback so far couldn't this be fixed by simply adding the files in:





I have not tried this myself because I'm not sure the syntax I need to follow, and there is a "compilefontconfig.jar" in the same directory that I'm not sure what to do with...

Dmitry Maruschenko (yojick) wrote :

I experienced the same problem and found that fonts are bold with Oracle Java 7, OpenJdk 7, but ok with sun-java-6 and openjdk 6.

Nikolay Dimitrov (tza2) wrote :

The same thing happened to me after I installed Wine. So I'm guessing that ttf-mscorefonts-installer is the real problem here.

Rasta (mf-peppa) wrote :

i also installed wine and after restart i had the same issue

SimonH (simon-m-hewitt) wrote :

+1 to installing wine/ms fonts having something to do with the issue. I installed PlayOnLinux yesterday and after a reboot, I had this problem.

Danny Wood (danwood76) wrote :

This appears to be a bug in the way Java 1.7 handles the 'Ubuntu Normal' System font.

Every other font I have tried works fine, its only when Ubuntu Normal is selected as the system font that all netbeans text goes bold.

Interestingly this happened to me after installing wine as well, re-installing the ubuntu font package doesn't help and neither did un-installing wine.

This also happened to me after installing wine/playonlinux. Just like SimonH, I installed it yesterday and NetBeans fonts went bold everywhere after reboot.

Ivan Ivanov (obiwanus) wrote :

The problem with bold font is described here -

It has a working way to fix (see the last messages).

Rob V (rob-veldpaus) wrote :

For anyone still looking for an alternative to the Metal look and Feel, you can use "". It looks better than Metal, but still dated... Sun was never the greatest for UI...

It should work with the Oracle JVM, but I'm guessing not the others. Personally, I just changed my font as described in some of the other posts.

description: updated
Bojan Cekrlic (bojan-cekrlic) wrote :

This is still an issue with 14.10 and with any Swing-based application + GTK L&F.

The bold font issue is, as it says in #26, another bug.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers