Font canDisplayUpTo method doesn't return -1

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.3.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: