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 114595 - I18N: Underline can not be rendered properly when editor font is customized
Summary: I18N: Underline can not be rendered properly when editor font is customized
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Miloslav Metelka
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-09-04 10:45 UTC by Masaki Katakai
Modified: 2010-11-19 10:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot: underline can be rendered properly (10.33 KB, image/png)
2007-09-04 10:49 UTC, Masaki Katakai
Details
screenshot: underline can NOT be rendered after font is changed (10.69 KB, image/png)
2007-09-04 10:50 UTC, Masaki Katakai
Details
screenshot: probelm during composing Japanese characters, underline is used for only 1st character but all 4 characters should be with underline (10.78 KB, image/png)
2007-09-04 10:52 UTC, Masaki Katakai
Details
sample project (NB6 based, UTF-8 encoding) (8.79 KB, application/octet-stream)
2007-09-04 10:54 UTC, Masaki Katakai
Details
screencast (102.77 KB, application/octet-stream)
2007-09-12 23:48 UTC, Masaki Katakai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2007-09-04 10:45:28 UTC
Windows XPSP2 Japanese
NetBeans 6.0 200709021200
JDK1.6.0_02

On Japanese Windows, when I changed the editor font to "MS Gothic" 13 point,
underline can not be rendered. I'll attach the test project and screenshots later.

1. Start NetBeans
2. Open the project of attachment
3. Open Java source on Editor
4. Press Ctrl key and move mouse cursor to the constructor

  The characters will be changed to blue color and drawn with blue underline.

5. Change "Default" font to "MS Gothic" on option window
6. Press Ctrl key and move mouse cursor to the constructor again

  The characters will be changed to blue color, but underline is not rendered.

I'm seeing this problem when I'm using Japanese input method.
Bug 14549 has been fixed then the text attributes of highlight and underline are now
being used during the input for 6.0.

I'm not sure if this is an I18N bug or not, but I put "I18N" keyword for now
because it's happening during composing Japanese string.
Comment 1 Masaki Katakai 2007-09-04 10:49:24 UTC
Created attachment 48020 [details]
screenshot: underline can be rendered properly
Comment 2 Masaki Katakai 2007-09-04 10:50:40 UTC
Created attachment 48021 [details]
screenshot: underline can NOT be rendered after font is changed
Comment 3 Masaki Katakai 2007-09-04 10:52:53 UTC
Created attachment 48022 [details]
screenshot: probelm during composing Japanese characters, underline is used for only 1st character but all 4 characters should be with underline
Comment 4 Masaki Katakai 2007-09-04 10:54:53 UTC
Created attachment 48023 [details]
sample project (NB6 based, UTF-8 encoding)
Comment 5 Vitezslav Stejskal 2007-09-06 11:37:06 UTC
Could you please try with different font size? It's probably some sort of a rendering problem, which could only affect
some font sizes. Also, does underlining work in general, eg. when you try ctrl+mouse click on an identifier it should
show a hyperlink? Does the hyperlink show properly? Thanks
Comment 6 Vitezslav Stejskal 2007-09-06 11:42:09 UTC
Ah, never mind my last two questions. I got it from the other issue. Anyway, could you please try different font sizes?
Thanks
Comment 7 Masaki Katakai 2007-09-07 13:58:38 UTC
Hi Vita,

The bigger size (>14) is working. I can see underline.
Comment 8 Masaki Katakai 2007-09-12 23:48:19 UTC
Created attachment 48694 [details]
screencast
Comment 9 Vitezslav Stejskal 2007-09-13 13:24:19 UTC
Should be fixed now. Masaki, could you please test the fix. Thanx

Checking in DrawGraphics.java;
/cvs/editor/libsrc/org/netbeans/editor/DrawGraphics.java,v  <--  DrawGraphics.java
new revision: 1.31; previous revision: 1.30
done
Comment 10 Masaki Katakai 2007-09-13 14:03:54 UTC
Sure, I'll try.
Comment 11 Masaki Katakai 2007-09-20 15:53:40 UTC
Product Version: NetBeans IDE Dev (Build 200709200000)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06
System: Windows XP version 5.1 running on x86; MS932; ja_JP (nb)

Hi Vita, I reopened this bug report because I can not still see the underline on build 200709200000.
Comment 12 Vitezslav Stejskal 2007-09-21 13:15:27 UTC
Ok, I'll have to check on Windows. Are hyperlinks broken even in non JP locales?
Comment 13 Jiri Prox 2008-04-11 00:42:59 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 14 Petr Dvorak 2009-02-04 12:50:07 UTC
Hi, is this issue still reproducible on your configuration? With regards, Petr Dvorak.
Comment 15 Masaki Katakai 2009-02-12 03:16:58 UTC
Hi Petr, sorry for late.

Yes, I'm seeing this issue on the latest trunk build. However it happens with very specific condition so I think the
priority can be decreased.
Comment 16 Sergey Petrov 2009-04-15 11:43:39 UTC
tried on linux with different fonts with size 13, can't reproduce with 6.7m3, need to try on windows.
Comment 17 ulfzibis 2009-11-10 09:08:02 UTC
It also happened to me, see Bug 122663.
Note: As I remember right, I never changed NetBeans default font, but I'm on Windows.
Comment 18 Miloslav Metelka 2010-11-19 10:40:38 UTC
With the current view hierarchy and all the fixes (including yesterday's fixed issue 192035) this problem will hopefully no longer happen.