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 237293 - Font Choice of Monospaced is different from that of 7.3
Summary: Font Choice of Monospaced is different from that of 7.3
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.4
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2013-10-18 04:20 UTC by ywliu
Modified: 2013-10-21 22:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Monospaced font in 7.3.1 (45.82 KB, image/png)
2013-10-18 04:21 UTC, ywliu
Details
Monospaced font in 7.4 (54.18 KB, image/png)
2013-10-18 04:22 UTC, ywliu
Details
Courier New font in 7.4 (49.65 KB, image/png)
2013-10-18 04:23 UTC, ywliu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ywliu 2013-10-18 04:20:22 UTC
I think this may be a regression issue.

I am using Windows 7 64bit Traditional Chinese edition.  In NB 7.3.1, "Monospaced" font would be "Courier New" but now in 7.4, it became the default OS Chinese font.

The Chinese font is kind of ugly for programming. I cannot select "Courier New", because unlike the way it is doing in other IDEs, choosing "Courier New" manually would make Chinese characters void.


Please see attached screen captures. Would it be possible to switch back the way it was in 7.3.1?
Comment 1 ywliu 2013-10-18 04:21:46 UTC
Created attachment 141232 [details]
Monospaced font in 7.3.1
Comment 2 ywliu 2013-10-18 04:22:15 UTC
Created attachment 141233 [details]
Monospaced font in 7.4
Comment 3 ywliu 2013-10-18 04:23:11 UTC
Created attachment 141234 [details]
Courier New font in 7.4

Chinese characters become void squares.
Comment 4 Miloslav Metelka 2013-10-21 08:40:09 UTC
Do you run the 7.4 IDE on the same JDK version like 7.3.1?
Comment 5 ywliu 2013-10-21 09:11:28 UTC
Yes:
 
7.4:
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; MS950; zh_TW (nb)
User directory: C:\Users\admin\AppData\Roaming\NetBeans\7.4
Cache directory: C:\Users\admin\AppData\Local\NetBeans\Cache\7.4

7.3.1:
Product Version: NetBeans IDE 7.3.1 (Build nbms-and-javadoc-578-on-20130927)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; UTF-8; zh_TW (nb)
User directory: C:\Users\admin\AppData\Roaming\NetBeans\7.3.1
Cache directory: C:\Users\admin\AppData\Local\NetBeans\Cache\7.3.1

In fact, I think this behavior has been there since 7.4 beta/snapshot. I just thought this change may be intermediate. Looks like I was wrong.
Comment 6 ywliu 2013-10-21 09:21:19 UTC
Okay. I figured it out:

In 7.3.1, I had a switch "-J-Dfile.encoding=UTF-8" in my netbeans.conf for my netbeans_default_options. It was a workaround for a Xdebug problem (see bug #231757), which should have been fixed in 7.4.

After I removed this option in 7.3.1, it behaves the same as 7.4 : using a UTF-8 Chinese TTF font, rather than Courier New. 

If I add this switch to the netbeans_default_options in netbeans.conf of 7.4, it looks the same as good old 7.3.1.

So, I don't know if this is a bug or what. However, it's only useful for users sticking to UTF-8 encoding. My better font selection is just a side-effect of another bug workaround.

Maybe we can call it quits. Thanks for your attention and help.
Comment 7 Jiri Prox 2013-10-21 22:18:01 UTC
ok, closing as works for me
thanks for investigation