JDK-4497694 : Cannot display Simplified Chinese characters using Windows Look&Feel
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2001-08-29
  • Updated: 2002-03-20
  • Resolved: 2002-03-20
Related Reports
Duplicate :  
Description

Name: bsC130419			Date: 08/29/2001


java version "1.4.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)

On Simplified Chinese Windows 2000 system, run SwingSet2 demo(jdk1.4
\demo\jfc\SwingSet2).  The localized menus & labels are OK using Metal
look&feel.  Select Look&Feel->Windows Look&Feel. Then all of the Chinese
characters become squares.
(Review ID: 130895) 
======================================================================

Comments
WORK AROUND Run with -Dswing.useSystemFontSettings=false ###@###.### 2002-03-20 Here's another workaround: under DisplayProperties->Appearance, change the font used for Menus to something besides Tahoma. Arial Unicode MS works well for me. ###@###.### 2002-03-20
20-03-2002

EVALUATION This looks like a desktop properties issue. I do not think this is a 2d bug. ###@###.### 2001-09-11 I can reproduce this using 1.4 and 1.4.1 on Windows 2000 using the Chinese (Singapore) locale. On my machine, JMenu characters are printed as boxes, but JCheckBoxes look correct. I wrote a small app to print out the MenuItem.font and CheckBox.font properties, and get the following for the WindowsLookAndFeel: MenuItem.font: javax.swing.plaf.FontUIResource[family=Tahoma,name=Tahoma,style=plain,size=11] CheckBox.font: javax.swing.plaf.FontUIResource[family=sansserif,name=MS Sans Serif,style=plain,size=11] It looks like we shouldn't be using the Tahoma font. The question is why we are. Looking through WindowsLookAndFeel.java, I've found a work-around which works on my machine. By running with -Dswing.useSystemFontSettings=false, the WindowsLookAndFeel paints Chinese characters in all components correctly. ###@###.### 2002-03-20 The Tahoma font is the font selected in Display Properties, but the problem is it doesn't have the glyphs for Chinese characters. It turns out that the same bug is decsribed in 4615396 I haven't found any problems with AWT DesktopProperties, so I'm closing this out as a duplicate. ###@###.### 2002-03-20
20-03-2002