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.
Summary: | I18N: localized strings are garbled on Welcome screen - ascii font is hardcoded | ||
---|---|---|---|
Product: | ide | Reporter: | Masaki Katakai <masaki> |
Component: | Welcome | Assignee: | 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 |
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) core-main 921784e95043 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 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. core-main 213a3594168a 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) |
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$