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

Arabic font metrics in Swing do not take joining into account

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      kestrel
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      In Swing classes that display Arabic text, the font metrics are apparently computed using the unjoined form of the Arabic letters. Since on the average the joined glyphs are narrower than the unjoined glyphs, this usually results in text areas that are wider than the actual text. In some cases the text fields are narrower. Try putting an Arabic word with five letters followed by five blanks (\u0020) in a jLabel. Make another jLabel with the same five letters interspersed with five blanks. The font metrics are correct for the second jLabel because the letters are forced to be unjoined, but not for the first.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jraleysunw John Raley (Inactive)
              Reporter:
              vrosenmasunw Victor Rosenman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: