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

SunLayoutEngine.isAAT() font is expensive on MacOS

XMLWordPrintable

    • 2d
    • b14

        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.

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

                Created:
                Updated:
                Resolved: