Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6183471

Japanese UDC are displayed as HKSCS UDC due to fontconfig.properties ordering

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 6
    • 6
    • client-libs

      Here are the steps to reproduce this:
      1. Set your system locale to Japanese.
      win2k: Control Panel > Regional Options > General Tab.
       set your locale to Japanese.
       push "Set default..." button, set system locale to Japan.
      You may be asked to reboot your pc.

      start c:\WINNT\system32\eudcedit.exe

      Make sure "Character Set" is "ShiftJIS"
      Edit -> select code.
      Create glyphs for 0xf040, f041, f045.
      Save the UDC file as "Link with all Fonts".

      2. Make sure your windows has MingLiU_HKSCS. You may need to download the drivers, fonts, etc. package from Microsoft. For more details see:
      http://www.microsoft.com/hk/hkscs/

      3. Start testcase with JDK 1.4.x.

      UDC is displayed with glyphs created per step 1.

      4. Start testcase with JDK5.0.

      UDC are displayed as HKSCS characters.

      Here is the test case:
      import java.io.*;
      import javax.swing.*;
      import java.awt.*;


      public class TestUDC extends JApplet
      {
        public void init() {
        

          MyPanel panel = new MyPanel();
          Container cont = this.getContentPane();
          cont.add(panel);
         }
      }
      class MyPanel extends JPanel {
          JTextField fld01;
          String string1 = "\ue000\ue001\ue005\u65e5\u672c\u8a9eUDC";

          MyPanel() {
          
          int width = 50;
          int size = 12;

          fld01 = new JTextField(width);


          fld01.setText(string1);

          fld01.setFont(new Font("Dialog", Font.PLAIN,20));
          this.setLayout(new BorderLayout());
          this.add(fld01, BorderLayout.CENTER);

        }
      }
      ###@###.### 10/22/04 23:08 GMT

            yyamasaksunw Yuriko Yamasaki (Inactive)
            mmma Marvin Ma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: