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 222950

Summary: I18N: localized strings are garbled on Welcome screen - ascii font is hardcoded
Product: ide Reporter: Masaki Katakai <masaki>
Component: WelcomeAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED FIXED    
Severity: normal Keywords: I18N
Priority: P2    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot

Description Masaki Katakai 2012-11-29 07:48:25 UTC
Created attachment 128556 [details]
screenshot

It seems that welcome screen has been changed for new design.
However, all japanese fonts are garbled - become rectangle.

It seems that "Arial" font is hardcoded. This font is
just for ascii, so this problem happens. Please change
to another font - usual font name used in Java.

bash-4.1$ grep Arial ./src/org/netbeans/modules/welcome/content/Constants.java
    static final Font BUTTON_FONT = new Font( "Arial", Font.PLAIN, FONT_SIZE+1 );
    static final Font RSS_DESCRIPTION_FONT = new Font( "Arial", Font.PLAIN, FONT_SIZE-1 );
    static final Font TAB_FONT = new Font( "Arial", Font.PLAIN, FONT_SIZE+1 ); //NOI18N
    static final Font SECTION_HEADER_FONT = new Font( "Arial", Font.BOLD, FONT_SIZE+7 ); //NOI18N
    static final Font GET_STARTED_FONT = new Font( "Arial", Font.PLAIN, FONT_SIZE+1 ) ; //NOI18N
    static final Font CONTENT_HEADER_FONT = new Font( "Arial", Font.BOLD, FONT_SIZE+13 ) ; //NOI18N
bash-4.1$
Comment 1 Masaki Katakai 2012-11-29 07:50:25 UTC
I'm using 

Product Version: NetBeans IDE Dev (Build 201211290002)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_07-b10
System: SunOS version 5.11 running on x86; UTF-8; ja_JP (nb)
Comment 2 Stanislav Aubrecht 2012-11-29 10:05:15 UTC
core-main 921784e95043
Comment 3 Quality Engineering 2012-12-04 03:16:02 UTC
Integrated into 'main-golden', will be available in build *201212040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/921784e95043
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #222950 - make font face name brandable
Comment 4 Masaki Katakai 2012-12-11 13:36:48 UTC
Reopened.

     1.6      static final int FONT_SIZE = Utils.getDefaultFontSize();
     1.7 +    static final String FONT_NAME = BundleSupport.getLabel( "FONT_NAME" ); //NOI18N
     1.8      static final Font BUTTON_FONT = new Font( "Arial", Font.PLAIN, FONT_SIZE+1 );
     1.9      static final Font RSS_DESCRIPTION_FONT = new Font( "Arial", Font.PLAIN, FONT_SIZE-1 );
    1.10      static final Font TAB_FONT = new Font( "Arial", Font.PLAIN, FONT_SIZE+1 ); //NOI18N

"Arial" are still hardcoded. "Arial" should be replaced with proper font name in these lines.
Comment 5 Stanislav Aubrecht 2012-12-11 13:45:47 UTC
core-main 213a3594168a
Comment 6 Quality Engineering 2012-12-14 02:42:47 UTC
Integrated into 'main-golden', will be available in build *201212140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/213a3594168a
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #222950 - make font face name brandable (proper)