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

font substitution mechanism finds wrong fonts for arabic

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 1.4.0
    • client-libs
    • 2d
    • sparc
    • solaris_7

    Description

      When a TextLayout is constructed with a map and no font, the font substitution mechanism tries to find a font that is able to display each character. Some scripts, though, require layout processing, and fonts may support the normative characters in the script, but not support the required layout for the script. So the font substitution mechanism needs to be script-aware.

      This can be illustrated by using an empty map to create a TextLayout do draw the lam alef characters. On solaris the font Akhbar MT contains the normative arabic characters, but not the presentation forms (at least, not that the current font implementation can find) and so can not be used to display arabic. Font substitution should not find this font for arabic unless no other font exists that can do a better job.

      Attachments

        Issue Links

          Activity

            People

              dougfelt Doug Felt
              dougfelt Doug Felt
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: