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

Check glyph size before adding to glyph texture cache.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • jfx11, 8, jfx15
    • jfx15
    • javafx

    Backports

      Description

        It was noticed that we do not check if a glyph will fit in the hardware texture cache before trying to add it, even though the information is readily available. Instead we leave it to the texture code to check it, and then catch the exception it throws and then return.
        This might all be OK, since the net result is the same but we also print the stack trace of the exception. If this occurs it would be unwelcome noise. That should be wrapped in a check to see if PrismSettings.debug is set. And at the same time do the check up front, so it is less likely to happen anyway.

        Attachments

          Issue Links

            Activity

              People

                prr Philip Race
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: