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

Arabic font metrics in Swing do not take joining into account

XMLWordPrintable

    • 2d
    • kestrel
    • generic
    • generic
    • Verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: