Font size in Netbeans does not match GTK theme

Bug #669159 reported by Sebastian Gaul
292
This bug affects 61 people
Affects Status Importance Assigned to Milestone
netbeans (Ubuntu)
Confirmed
Undecided
Unassigned

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 2.6.35.4
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
ProcEnviron:
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: netbeans

Revision history for this message
Sebastian Gaul (n-admin-mgvmedia-com) wrote :
Jorge Castro (jorge)
Changed in netbeans (Ubuntu):
status: New → Confirmed
Revision history for this message
Ashfame (ashfame) wrote :

This is how it looks on mine after upgrade

Revision history for this message
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.

Revision history for this message
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
http://hanynowsky.wordpress.com/2012/04/27/netbeans-ide-look-feel-under-ubuntu-12-04/

Revision history for this message
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?

Revision history for this message
Luis Lobo (luislobo) wrote :

Same here! Just upgraded from 11.10 to 12.04

Revision history for this message
Vadim Vashkevich (vadim-vashkevich) wrote :

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

Revision history for this message
Alfredo Marchini (alfredo.marchini) wrote :

Same problem here after upgraded from oneiric to precise.

Revision history for this message
Alfredo Marchini (alfredo.marchini) wrote :

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

Revision history for this message
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.

Revision history for this message
Dmitry Banasko (dimon-bad) wrote :

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

Revision history for this message
Espen Meidell (espen-meidell) wrote :

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

Revision history for this message
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.

Revision history for this message
Leonardo José Montenegro Santiago (leomontenegro6) wrote :

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.

Revision history for this message
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

Revision history for this message
Neven Blazic (nevenblazic) wrote :

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

Revision history for this message
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.

Revision history for this message
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:

/usr/share/fonts/truetype/ubuntu-font-family/*

To:

/usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/fontconfig.properties

?

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...

Revision history for this message
Luis Lobo (luislobo) wrote :
Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
Rasta (mf-peppa) wrote :

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

Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
Mauricio R. Cruz (mauriciorcruz) wrote :

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

Revision history for this message
Ivan Ivanov (obiwanus) wrote :

The problem with bold font is described here - https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/937200

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

Revision history for this message
Rob V (rob-veldpaus) wrote :

For anyone still looking for an alternative to the Metal look and Feel, you can use "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel". 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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.