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

Add sun.font.FontUtilities.isComplexCharCode or related method to public API

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b116
    • CPU:
      x86
    • OS:
      windows_8

      Description

      A DESCRIPTION OF THE REQUEST :
      Method sun.font.FontUtilities.isComplexCharCode will become inaccessible to Java applications in Java 9. The proposal is to move it (or one of the related methods) to public Java API, so that applications would be able to use it going forward.

      Related methods are:
      sun.font.FontUtilities.isNonSimpleChar
      sun.font.FontUtilities.isComplexText
      sun.swing.SwingUtilities2.isComplexLayout

      JUSTIFICATION :
      Mentioned methods implement important functionality for applications using java.awt.font.GlyphVector instances to render text. They are needed to determine whether 'createGlyphVector' method or 'layoutGlyphVector' method in java.awt.Font class should be used to create a GlyphVector instance - the latter method always produces a desired result, but it's much slower, so the former, quicker, method is usually used in cases where the result is known to be the same.


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              prr Philip Race
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: