This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 219150

Summary: [NetCAT]Poor font rendering on JDK7
Product: editor Reporter: michbarsinai <michbarsinai>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED DUPLICATE    
Severity: normal Keywords: UI, USABILITY
Priority: P4    
Version: 7.2   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description michbarsinai 2012-09-28 02:49:39 UTC
[ BUILD # : BETA ]
[ JDK VERSION : 1.7.7 ]

The IDE displays fonts poorly on JDK7.
This may be a major issue with mac users, as they (we) tend to be quite picky
about the visual appearance of their IDEs.
Comment 1 Stanislav Aubrecht 2012-10-03 15:19:22 UTC
Please provide OS version info and a screen shot pls and reopen, thanks.
Do you have Retina MacBook by any chance?
Comment 2 botskonet 2012-11-13 16:13:59 UTC
I can confirm this. It's actually so much of a problem I either have to use another application or use a white-background based theme which hurts my eyes.

I did a recent update of the Mac software and that's when the problem began. 

Here''s how it looks currently:
http://d.pr/i/jBd4

Here's a better idea of how it looked before (thickness-wise):
http://d.pr/i/JQN

Some info:

Mac 10.8.2

java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)

NetBeans IDE 7.3 Beta 2 (Build 201211062253) (it did the same on 7.2).
Comment 3 Stanislav Aubrecht 2012-11-13 16:23:25 UTC
If my understanding is correct then you're complaining about the fonts in editor window, right?
Comment 4 shanepbrady 2012-11-26 16:00:21 UTC
FINE [org.netbeans.editor.BaseCaret]: updateCaretBounds: old=null, new=java.awt.Rectangle[x=0,y=0,width=8,height=14], offset=0
FINE [org.netbeans.editor.BaseCaret]: updateCaretBounds: no change, old=java.awt.Rectangle[x=0,y=0,width=8,height=14]
FINE [org.netbeans.editor.BaseCaret]: updateCaretBounds: old=java.awt.Rectangle[x=0,y=0,width=8,height=14], new=java.awt.Rectangle[x=0,y=0,width=8,height=14], offset=0
FINE [org.netbeans.editor.BaseCaret]: updateCaretBounds: no change, old=java.awt.Rectangle[x=0,y=0,width=8,height=14]
FINE [org.netbeans.editor.BaseCaret]: updateCaretBounds: old=java.awt.Rectangle[x=0,y=0,width=8,height=14], new=java.awt.Rectangle[x=0,y=0,width=8,height=14], offset=0
FINE [org.netbeans.editor.BaseCaret]: updateCaretBounds: no change, old=java.awt.Rectangle[x=0,y=0,width=8,height=14]
mousePressed: x=104, y=99, clicks=1, component=org.openide.text.QuietEditorPane@45903ccf, source=org.openide.text.QuietEditorPane@45903ccf, button=1, mods=16, modsEx=1024, state=DEFAULT
FINE [org.netbeans.editor.BaseCaret]: setDot: offset=284
FINE [org.netbeans.editor.BaseCaret]: updateCaretBounds: old=java.awt.Rectangle[x=0,y=0,width=8,height=14], new=java.awt.Rectangle[x=16,y=98,width=8,height=14], offset=284
Comment 5 oxigenio 2012-12-03 23:40:09 UTC
Hi. I'm a developer and I use NB everyday. Today I've updated my mac with some new software like iTunes 11 and JDK 1.7. After those updates my Netbeans app is looking worse than ever. Font rendering is completely screwed... Editor fonts, menus fonts... every font is looking really bad on NB 7.2, 7.2.1 and 7.1.2 (using JDK 1.7). Then I noticed that in a previous version, 7.1.1 with JDK 6 font rendering looks normal...

Please fix it... it's really hard to work 8 hours a day looking to bad font rendering!


I'm on a 2010 iMac with  Mac 10.8.2 and java version "1.7.0_04"
Comment 6 Miloslav Metelka 2012-12-04 14:52:27 UTC
This is in fact the same problem like issue #215141 - please see comment 53.

*** This bug has been marked as a duplicate of bug 215141 ***
Comment 7 ota 2013-03-06 08:30:18 UTC
So why do other editors (e.g. eclipse) running on JDK7 dont have the same rendering issues as netbeans?
Comment 8 Miloslav Metelka 2013-11-20 09:56:39 UTC
(In reply to ota from comment #7)
> So why do other editors (e.g. eclipse) running on JDK7 dont have the same
> rendering issues as netbeans?
AFAIK Eclipse uses SWT toolkit for rendering while the Swing framework uses java's own AWT that's why this particular problem won't show up in Eclipse.