-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b140
-
generic
-
windows
-
Verified
SYNOPSIS
--------
EUDC character is not displayed on Swing if ClearType is enabled
OPERATING SYSTEMS
-----------------
Windows.
Tested with:
Windows XP SP3 (Japanese)
Windows 7 Professional x86 (Japanese)
FULL JDK VERSION
----------------
JDK 7 (tested with b136).
Does not occur with Java 6 (tested with 6u24).
DESCRIPTION from LICENSEE
-------------------------
I tried to display EUDC (End User Defined Character) into JTextArea. If ClearType is enabled, nothing is displayed.
With the Font2DTest sample program, if I set LCD_HRGB, LCD_HBGR, also nothing displayed.
TESTCASE
--------
import javax.swing.*;
import java.awt.*;
class JTextAreaTest2 extends JFrame {
JTextAreaTest2(String title) {
super(title);
Container c = getContentPane();
c.setLayout(new GridLayout(1,0));
c.add(new JTextArea("\uE000"));
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(300, 200);
setLocationByPlatform(true);
setVisible(true);
}
public static void main(String[] args) {
for (String title : args)
new JTextAreaTest2(title);
}
}
REPRODUCTION INSTRUCTIONS
-------------------------
1. run "eudcedit", create font glyph into 0xF040 (U+E000), save it.
(Save it into EUDC file)
2. Turn off ClearType
3. Compile and run above test program
> javac JTextAreaTest2.java
> java JTextAreaTest2 1
4. EUDC character is displayed
5. Turn on ClearType
6. EUDC character is disappeared
Alternative test using Font2DTest (demo\jfc\Font2DTest\Font2DTest.jar):
1. run "eudcedit", create font glyph into 0xF040 (U+E000), save it.
(Save it into EUDC file)
2. Start Font2DTest.jar
> java -jar Font2DTest.jar
3. On "Test to use:", select "User Text"
4. Type "\uE000" on "User Text" window and press "Update" button
5. On "Antialiaing:", select "LCD_HRGB" or "LCD_HBGR"
Then EUDC character is disappeared
--------
EUDC character is not displayed on Swing if ClearType is enabled
OPERATING SYSTEMS
-----------------
Windows.
Tested with:
Windows XP SP3 (Japanese)
Windows 7 Professional x86 (Japanese)
FULL JDK VERSION
----------------
JDK 7 (tested with b136).
Does not occur with Java 6 (tested with 6u24).
DESCRIPTION from LICENSEE
-------------------------
I tried to display EUDC (End User Defined Character) into JTextArea. If ClearType is enabled, nothing is displayed.
With the Font2DTest sample program, if I set LCD_HRGB, LCD_HBGR, also nothing displayed.
TESTCASE
--------
import javax.swing.*;
import java.awt.*;
class JTextAreaTest2 extends JFrame {
JTextAreaTest2(String title) {
super(title);
Container c = getContentPane();
c.setLayout(new GridLayout(1,0));
c.add(new JTextArea("\uE000"));
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(300, 200);
setLocationByPlatform(true);
setVisible(true);
}
public static void main(String[] args) {
for (String title : args)
new JTextAreaTest2(title);
}
}
REPRODUCTION INSTRUCTIONS
-------------------------
1. run "eudcedit", create font glyph into 0xF040 (U+E000), save it.
(Save it into EUDC file)
2. Turn off ClearType
3. Compile and run above test program
> javac JTextAreaTest2.java
> java JTextAreaTest2 1
4. EUDC character is displayed
5. Turn on ClearType
6. EUDC character is disappeared
Alternative test using Font2DTest (demo\jfc\Font2DTest\Font2DTest.jar):
1. run "eudcedit", create font glyph into 0xF040 (U+E000), save it.
(Save it into EUDC file)
2. Start Font2DTest.jar
> java -jar Font2DTest.jar
3. On "Test to use:", select "User Text"
4. Type "\uE000" on "User Text" window and press "Update" button
5. On "Antialiaing:", select "LCD_HRGB" or "LCD_HBGR"
Then EUDC character is disappeared
- relates to
-
JDK-6951501 EUDC character is not displayed on Swing
- Closed