Dingbats (symbol), unicode \u2700-\u27be is not displayed.
STEPS: On Win32, JDK1.2 Beta4 "J"
Compile and run following code on both Beta4 "J" and beta3. Beta4 only displays square.
C:\> java SymbolTest Serif
---- SymbolTest.java
import java.awt.*;
import java.awt.event.*;
public class SymbolTest extends Frame {
public static void main(String[] args) {
new SymbolTest(args);
}
String[] str;
SymbolTest(String[] args) {
super("Test");
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
str = args;
setSize(300,300);
show();
}
public void paint(Graphics g) {
Font f = new Font(str[0], Font.PLAIN, 12);
g.setFont(f);
g.drawString("\u2708\u2776\u2780", 10, 50);
}
}
----
[koushi.takahashi@japan 1998-06-18]
STEPS: On Win32, JDK1.2 Beta4 "J"
Compile and run following code on both Beta4 "J" and beta3. Beta4 only displays square.
C:\> java SymbolTest Serif
---- SymbolTest.java
import java.awt.*;
import java.awt.event.*;
public class SymbolTest extends Frame {
public static void main(String[] args) {
new SymbolTest(args);
}
String[] str;
SymbolTest(String[] args) {
super("Test");
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
str = args;
setSize(300,300);
show();
}
public void paint(Graphics g) {
Font f = new Font(str[0], Font.PLAIN, 12);
g.setFont(f);
g.drawString("\u2708\u2776\u2780", 10, 50);
}
}
----
[koushi.takahashi@japan 1998-06-18]
- duplicates
-
JDK-4173559 SymbolTest doesn't show any symbols on Solaris
- Closed
- relates to
-
JDK-4138922 Need to fully support multi-font
- Closed
-
JDK-4150075 Logical font with style cannot display Japanese
- Closed