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.
Created attachment 138704 [details] there is no space between "IDENTITY" and ")" This is a regression from a very long time ago. Many fonts (especially variable width fonts) show a gap after italic identifiers. This can easily be mistaken for a space and depending on the context/syntax can be extremely confusing.
Created attachment 138705 [details] there is no space between "IDENTITY" and ")"
Could you please specify which version of NetBeans are you using and which JDK? Simply copy & paste information from NetBeans->About dialog. And perhaps name of one font that causes this issue. I've tried it on Linux and it looks OK there. Thank you in advance Product Version: NetBeans IDE Dev (Build web-main-11351-on-20130814) Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b55 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Here you are. Note that this issue popped up at least a month or two (or three) ago in the development builds but I kept forgetting to file a report. Product Version: NetBeans IDE Dev (Build 201308141142) Java: 1.7.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 24.0-b53 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b34 System: Mac OS X version 10.9 running on x86_64; UTF-8; en_US (nb) User directory: /Users/alvin/Library/Application Support/NetBeans/dev Cache directory: /Users/alvin/Library/Caches/NetBeans/dev
Same issue with JDK8
also note that when I say regression from a "very long time ago" I'm talking years--possibly upwards of 10.
Thank you for update, I've tried it with Verdana font and still cannot reproduce it though Product Version: NetBeans IDE Dev (Build 201308182300) Updates: Updates available Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39 System: Mac OS X version 10.8.4 running on x86_64; UTF-8; en_US (nb)
Hmm...I still have the same problem. I can replicate with Verdana in all sizes. Maybe it has to do with being a retina mac? Product Version: NetBeans IDE Dev (Build 201308192300) Updates: Updates available Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b40 System: Mac OS X version 10.9 running on x86_64; UTF-8; en_US (nb) User directory: /Users/alvin/Library/Application Support/NetBeans/dev Cache directory: /Users/alvin/Library/Caches/NetBeans/dev
Created attachment 138944 [details] settings dir
Do you have some older Mac without retina display or/and without OS X 10.9? If so, could you please try it on it?
Unfortunately, I don't have another Mac I can test on ATM. I really think this should be a P2 because the "fake" spaces can alter the perceived meaning of the code in some syntaxes, which is very confusing.
I have just tried the latest build of JDK 8 on MacOSX 10.8.4 and it looks ok with Verdana font. I am marking the problem as NO74 since we don't support OSX 10.9 yet. Also making the problem P2 since it looks really bad.
Could you run the IDE with -J-Dorg.netbeans.modules.editor.lib2.view.FontInfo.level=FINE and attach messages.log? It should show the widths of the fonts being used by view hierarchy. Thanks.
Created attachment 140524 [details] same problem on my retina I see the same problem with jdk7-u40 and nb 7.3.1
(In reply to maxnitribitt from comment #13) Hi Max, Are you using OS X 10.8 or a Mavericks build?
(In reply to athompson from comment #14) > (In reply to maxnitribitt from comment #13) > Hi Max, > > Are you using OS X 10.8 or a Mavericks build? Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b48 Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b106
(In reply to maxnitribitt from comment #15) > (In reply to athompson from comment #14) > > (In reply to maxnitribitt from comment #13) > > Hi Max, > > > > Are you using OS X 10.8 or a Mavericks build? > > Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b48 > Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b106 Sorry, I wanted to write it also happens with JDK 8. I'm using OS X 10.8.5 (12F37)
(In reply to David Strupl from comment #11) > I have just tried the latest build of JDK 8 on MacOSX 10.8.4 and it looks ok > with Verdana font. I am marking the problem as NO74 since we don't support > OSX 10.9 yet. Also making the problem P2 since it looks really bad. Hi, David, I'm removing the NO74 tag because the problem affects OS X 10.8 as well.
...I imagine this must be a retina Mac issue since you're not seeing it.
Stando, can you please try on your retina mac? Please try with 7u40 (or 45) and possibly also with JDK 8 (latest). If you are able to reproduce please include also the version of MacOSX that you have. Thanks a lot.
I can reproduce that extra space in Product Version: NetBeans IDE Dev (Build 20131002-81b450a5adc4) Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43 System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb) While running on Retina MacBookPro
But it seems to be a JDK bug as I can see the same artefacts in SwingSet demo app in the same environment.
(In reply to Stanislav Aubrecht from comment #21) > But it seems to be a JDK bug as I can see the same artefacts in SwingSet > demo app in the same environment. Please ignore comment #21, the HTML demo in SwingSet app is just poorly written so it looks like the bug is reproducible there. But I can confirm the issue is visible in NetBeans under JDK 1.8 as well. Product Version: NetBeans IDE Dev (Build 20131002-81b450a5adc4) Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b51 Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b109 System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb)
"me too" - confused the heck out of me at first, thought the 7.4 formatter had broken everything. Retina MBP OSX 10.8.5 java build 1.8.0-ea-b108 NB 7.4 RC2 Fonts: Monospaced 12, Monospaced 13.
(In reply to Stanislav Aubrecht from comment #22) > Please ignore comment #21, the HTML demo in SwingSet app is just poorly > written so it looks like the bug is reproducible there. > What concretely is poorly written? The demo just uses Swing's text package (JEditorPane) with html mime-type (the pane will use javax.swing.text.html.HTMLEditorKit). In the end either GlyphPainter1 or GlyphPainter2 are used for text glyphs rendering and IMHO both ways are legitimate and should be well supported by JDK.
Created attachment 141055 [details] Rendering issues
(In reply to Miloslav Metelka from comment #24) > (In reply to Stanislav Aubrecht from comment #22) > > Please ignore comment #21, the HTML demo in SwingSet app is just poorly > > written so it looks like the bug is reproducible there. > > > What concretely is poorly written? I meant that the HTML text content has unnecessary extra space characters so it looks like the issue can be reproduced. But there's something broken in JDK. I've attached a screen shot of JLabel rendering this simple HTML: <html>plain text<i>itallics</i>more plain text The top part is rendered on retina display, the bottom is rendered on the same machine on secondary non-retina display.
I got this annoying font problem when I upgraded (i.e. installed) 7.3.1 on my mac. I believe that I used the same JDK as with version 7.3 which lead me to believe it's a netbeans bug. But I might be wrong...
Duplicate of https://netbeans.org/bugzilla/show_bug.cgi?id=234405.
(In reply to heintz from comment #28) > Duplicate of https://netbeans.org/bugzilla/show_bug.cgi?id=233541. Sorry, https://netbeans.org/bugzilla/show_bug.cgi?id=233541
Created attachment 141842 [details] space after italics text in code editor Same problem here, attached screenshot of issue. MBP Retina 15" (early 2013). Affects all languages (tried PHP, Java, jruby[with support plugin]) Product Version = NetBeans IDE 7.4 (Build 201310111528) Operating System = Mac OS X version 10.9 running on x86_64 Java; VM; Vendor = 1.7.0_45 Runtime = Java HotSpot(TM) 64-Bit Server VM 24.45-b08
We've tested with Standa on a Mac with retina display and it seemed that the issue is related to the two monitors being connected to the system (one retina and one non-retina). On non-retina the characters looked fine and on retina there was a gap. It looks to me like if the system would choose the largest metrics (so that the chars won't overwrite each other) on all present monitors and use that setting. Is there anyone who reproduces the problem and only uses a single retina display (no external monitors connected)? Anyway we'll continue to hunt the problem.
> Is there anyone who reproduces the problem and only uses a single retina > display (no external monitors connected)? Yes, I'm only using my MBP 15" retina screen and the problem occurs.
Same--just using the laptop without a second display.
Reproducible on retina Macbook Pro without external monitor.
Added some more logging for -J-Dorg.netbeans.modules.editor.lib2.view.ParagraphViewChildren.level=FINE -J-Dorg.netbeans.modules.editor.lib2.view.TextLayoutUtils.level=FINE http://hg.netbeans.org/jet-main/rev/e1537b6b28f7
Integrated into 'main-silver', will be available in build *201311240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e1537b6b28f7 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #234405 - [Mac OSX w/ retina display] many fonts show a gap after italics - added logging.
TextLayout.getPixelBounds() gives wrong result for italic fonts on retina displays. Luckily TextLayout.getAdvance() is correct so using that value. http://hg.netbeans.org/jet-main/rev/1308aa7e0d17
w00t!
In release74: e1537b6b28f7 transplanted to e00f76b4f60f 1308aa7e0d17 transplanted to 8c7352a46c58