-
Bug
-
Resolution: Fixed
-
P2
-
6u10, 6u17, 6u18
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2188125 | 7 | Igor Nekrestyanov | P2 | Closed | Fixed | b100 |
JDK-2188183 | 6u19 | Igor Nekrestyanov | P2 | Closed | Fixed | b03 |
JDK-2192896 | 5.0u25 | Abhijit Saha | P2 | Closed | Fixed | b01 |
JDK-2190180 | 5.0u24-rev | Abhijit Saha | P2 | Resolved | Fixed | b04 |
JDK-2188184 | 5.0u23-rev | Abhijit Saha | P2 | Closed | Fixed | b05 |
JDK-2192853 | 1.4.2_27 | Abhijit Saha | P2 | Closed | Fixed | b01 |
JDK-2190160 | 1.4.2_26-rev | Abhijit Saha | P2 | Resolved | Fixed | b04 |
JDK-2188185 | 1.4.2_25-rev | Abhijit Saha | P2 | Closed | Fixed | b05 |
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
EXTRA RELEVANT SYSTEM CONFIGURATION :
PMingLiu font is installed properly.
A DESCRIPTION OF THE PROBLEM :
The chinese font "PMingLiu" not rendered correctly after update to 1.6.0_u17 from 1.6.0_u15.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile and run the program, you should see a correct rendering of the four label with text "supplier name chinese".
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Compile and run the program, you should see a correct rendering of the four label with text "supplier name chinese".
ACTUAL -
font size with 14.0f and 18.0f cannot be rendered correctly.
Usually, only left the text "s r c s "
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.Font;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class FontScaleTester {
public static void main(String[] args) {
JFrame frame = new JFrame();
JPanel panel = (JPanel) frame.getContentPane();
panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
Box box = Box.createVerticalBox();
box.add(createLabel("PMingLiu", 12.0f));
box.add(createLabel("PMingLiu", 14.0f));
box.add(createLabel("PMingLiu", 16.0f));
box.add(createLabel("PMingLiu", 18.0f));
panel.add(box);
frame.pack();
frame.setVisible(true);
}
static JLabel createLabel(String fontname, float size) {
JLabel label = new JLabel("supplier name chinese");
Font newFont = new Font(fontname, Font.PLAIN, 12).deriveFont(size);
label.setFont(newFont);
return label;
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
I don't have any workaround yet. Please fix it.
Release Regression From : 6u15
The above release value was the last known release where this
bug was not reproducible. Since then there has been a regression.
- backported by
-
JDK-2190160 Chinese Font PMingLiu not rendered correctly
- Resolved
-
JDK-2190180 Chinese Font PMingLiu not rendered correctly
- Resolved
-
JDK-2188125 Chinese Font PMingLiu not rendered correctly
- Closed
-
JDK-2188183 Chinese Font PMingLiu not rendered correctly
- Closed
-
JDK-2188184 Chinese Font PMingLiu not rendered correctly
- Closed
-
JDK-2188185 Chinese Font PMingLiu not rendered correctly
- Closed
-
JDK-2192853 Chinese Font PMingLiu not rendered correctly
- Closed
-
JDK-2192896 Chinese Font PMingLiu not rendered correctly
- Closed
- duplicates
-
JDK-6919612 Incorrectly Monospaced font rendering with JRE 1.6.0_17 & above
- Closed
-
JDK-6919613 Jre 1.6.0_17 and 18 not working for Hindi Locale
- Closed
- relates to
-
JDK-6935420 TEST: sun/awt/font/6921593/FontScaleTester.java test code should be adjuster for jtreg
- Closed
-
JDK-6921591 NPE when rendering JLabel with specific unicode characters
- Closed