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

SunLayoutEngine.isAAT() font is expensive on MacOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • Resolved In Build:
      b14

      Backports

        Description

        The text layout code passes a boolean flag down to the
        native layer which is used to inform it how to handle device scales.
        For sun.font.TrueType instances this is a cheap test, but
        since on MacOS the CFont class is used, the call is very expensive
        on Mac, since it makes a native call which uses core text to
        retrieve the table and constructs a Java byte array and passes
        it up to Java. All to discover the layout technology of the font.
        If this can't be made much cheaper, the result should be cached.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  prr Philip Race
                  Reporter:
                  prr Philip Race
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: