FULL PRODUCT VERSION :
java version "1.6.0_10-beta"
Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b14)
Java HotSpot(TM) Client VM (build 11.0-b11, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Vista (Microsoft Windows [Version 6.0.6000])
A DESCRIPTION OF THE PROBLEM :
Starting with 6u10 build 13 the font rendering is broken.
The symptons are:
- large italic fonts are truncated at the end
- unicode characters are not rendered properly
In 6u10 build 12 this was working fine.
Especially for programs relying on a proper unicode rendering this is a showstopper.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the attached source and compare the rendering on 6u10b12 and 6u10b13-21
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
text being rendered properly
ACTUAL -
See description
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.EventQueue;
import javax.swing.*;
public class TestFontRendering extends JPanel {
public TestFontRendering() {
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
final JLabel labelTitle = new JLabel("<html><font size='+3'><i>Welcome Welcome Welcome</i>");
final JLabel label1 = new JLabel("\u2780 6u10 b12 works fine");
final JLabel label2 = new JLabel("\u2781 6u10 b13ff has the following issues");
final JLabel label3 = new JLabel("\u2782 - headline is truncated at the end");
final JLabel label4 = new JLabel("\u2783 - unicode bullets are not rendered correctly");
add(labelTitle);
add(label1);
add(label2);
add(label3);
add(label4);
}
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception ignore) {
}
JFrame frame = new JFrame("Font issues in 6u10 b13ff");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setContentPane(new TestFontRendering());
frame.pack();
frame.setVisible(true);
}
});
}
}
---------- END SOURCE ----------