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: Japanese characters become rectangles because of setting tahoma/italic |
Product: |
javafx
|
Reporter: |
Masaki Katakai <masaki> |
Component: |
Project | Assignee: |
Roman Svitanic <rsvitanic> |
Status: |
RESOLVED
FIXED
|
|
|
Severity: |
normal
|
|
|
Priority: |
P2
|
|
|
Version: |
7.4 | |
|
Hardware: |
PC | |
|
OS: |
Windows 7 | |
|
Issue Type:
|
DEFECT
|
Exception Reporter:
|
|
Attachments: |
screenshot on
|
Created attachment 139355 [details] screenshot on Product Version: NetBeans IDE Dev (Build 201308270001) Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b17 Please refer to the screenshot. On "Choose JavaFX Application Class" dialog, Japanese characters become rectangles because of setting hardcoded ascii fonts or setting to ITALIC. Please do not use any ascii fonts or ITALIC because the font availability may depend on language and platform (e.g. linux). ./src/org/netbeans/modules/javafx2/project/ui/JSEApplicationClassChooser.java: labelMessage.setFont(new java.awt.Font("Tahoma", 2, 11)); // NOI18N ./src/org/netbeans/modules/javafx2/project/ui/JSEApplicationClassChooser.form: <Font name="Tahoma" size="11" style="2"/> ./src/org/netbeans/modules/javafx2/project/ui/JFXApplicationClassChooser.java: labelScanning.setFont(labelScanning.getFont().deriveFont((labelScanning.getFont().getStyle() | java.awt.Font.ITALIC), labelScanning.getFont().getSize()+1)); ./src/org/netbeans/modules/javafx2/project/ui/JFXApplicationClassChooser.form: <Font component="labelScanning" italic="true" property="font" relativeSize="true" size="1"/> ./src/org/netbeans/modules/javafx2/project/ui/JFXRunPanel.java: //Font emphfont = basefont != null ? basefont.deriveFont(Font.ITALIC) : null; ./src/org/netbeans/modules/javafx2/project/ui/JFXRunPanel.java: label.setFont(basefont.deriveFont(Font.ITALIC)); ./src/org/netbeans/modules/javafx2/project/ui/JFXRunPanel.java: //final Font emphfont = basefont.deriveFont(Font.ITALIC);