[classlib][awt][swing] Far East fonts aren't displayed correctly
-----------------------------------------------------------------
Key: HARMONY-4713
URL: https://issues.apache.org/jira/browse/HARMONY-4713
Project: Harmony
Issue Type: Bug
Components: Classlib
Environment: Windows XP, Windows Server 2003, DRLVM
Reporter: Alexei Zakharov
Assignee: Alexei Zakharov
By default Harmony does not display Chinese/Japanese letters correctly if they are used in
Swing UI elements - button labels, menu entry names and etc. At least if default Windows
locale is not switched to Chinese/Japanese.
This way, the following test displays empty squares on Harmony and valid hieroglyphs on RI:
SwingHello.java:
---
import java.awt.*;
import javax.swing.*;
public class SwingHello extends JFrame {
private final static String TEXT = "\u4eca\u65e5\u306f";
protected JLabel l;
public SwingHello() {
setLayout(new GridBagLayout());
setSize(100, 100);
l = new JLabel(TEXT);
add(l);
}
public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
SwingHello fr = new SwingHello();
fr.setVisible(true);
}
});
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|