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

Font canDisplayUpTo method doesn't return -1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.3.0
    • client-libs
    • None
    • 2d
    • generic
    • generic

      If a font can display all chars in a String when queried using canDisplayUpTo(String str), it should return -1 to signify this. However, the method simply returns the string length.

      The attached code demonstrates. Since all fonts should support the simple chars "abc", the app should break on the first supporting font and diisplay the font name. It doesn't display any font name.

            Unassigned Unassigned
            joconnersunw John Oconner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: