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

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

XMLWordPrintable

    • 2d
    • b116
    • x86
    • windows_8

      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.


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

              Created:
              Updated:
              Resolved: