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

No support for CMAP 3,0 (symbol) encoding

    XMLWordPrintable

Details

    • 2d
    • 1.2fcs
    • generic, x86
    • solaris_2.5.1, windows_nt
    • Verified

    Description

      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]

      Attachments

        Issue Links

          Activity

            People

              duke J. Duke
              ktakahassunw Koushi Takahashi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: