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

NPE in TextLayout containing only zero-advance glyphs using a Font with a rotated baseline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • client-libs
    • 2d
    • b56
    • generic
    • generic

      In Font2DTest select "Rotate" from the Font Transform menu and then
      select "TextLayout" from the "Method" menu of rendering calls.
      The result will be a NullPointerException. This will occur on any platform.
      To more precisely reproduce this select "Text to Use" and change it to
      one or of \u0009 (TAB), \u000a (NL), \u000d (CR).
      These and various other glyphs which are invisible and have no advance
      may cause this exception when used in isolation.
      If any actual text is present everything is OK.
      This was introduced by
      6271315: Text metrics nonsensical when baseline is rotated
      but wasn't apparent (due to the code path not executing) until the additional fix for:
      4524995: Problems when rendering some strings with font rotation transform set

            dougfelt Doug Felt (Inactive)
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: