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

Unicode characters display as square boxes

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      beta
    • CPU:
      x86
    • OS:
      windows_nt

      Description

      Unicode characters \u2018 and \u2019 display as square boxes in the "dialog"
      plain font. Interestingly they display correctly in the italic version of
      this font. Again there's no problem if you change the JTextField to a
      TextField.

      field = new JTextField("\u2018Test\u2019", 30);
      field.setFont(new Font(fontName, Font.PLAIN, fontSize)); - FAILS
      .
      .
      font = new Font(fontName, Font.ITALIC, fontSize); - DISPLAYS FINE

        Attachments

          Activity

            People

            • Assignee:
              pkejriwasunw Parry Kejriwal (Inactive)
              Reporter:
              atongschsunw Albert Tong-schmidt (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: