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 226619 - I18N: font name "ubuntu" is hardcoded
Summary: I18N: font name "ubuntu" is hardcoded
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-25 04:56 UTC by Masaki Katakai
Modified: 2013-02-26 05:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2013-02-25 04:56:54 UTC
Please do not hardcode any font name in source codes, which
may cause garbled characters in multibyte environment.

A community member in japan kindly sent a screenshot to me:

http://ow.ly/i/1zvTg

Japanese strings are garbled on Linux environment.

php.editor/
./src/org/netbeans/modules/php/editor/verification/UninitializedVariableCustomizer.form:          <Font name="Ubuntu" size="15" style="1"/>
./src/org/netbeans/modules/php/editor/verification/UninitializedVariableCustomizer.form:          <Font name="Ubuntu" size="15" style="2"/>
./src/org/netbeans/modules/php/editor/verification/UninitializedVariableCustomizer.java:        jLabel1.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
./src/org/netbeans/modules/php/editor/verification/UninitializedVariableCustomizer.java:        jLabel2.setFont(new java.awt.Font("Ubuntu", 2, 15)); // NOI18N

Please remove font name, just specify the font size in this case.
Comment 1 Ondrej Brejla 2013-02-25 12:55:10 UTC
Fixed in web-main #ba5487588702
Comment 2 Quality Engineering 2013-02-26 05:23:20 UTC
Integrated into 'main-golden', will be available in build *201302252300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ba5487588702
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #226619 - I18N: font name "ubuntu" is hardcoded