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

Font API has prototype API that should be removed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.2.0
    • client-libs
    • 2d
    • generic
    • generic



      Name: bb33257 Date: 02/13/98


      Font has API that defines public constants that are only used
      in an implementation mockup designed for testing on 1.1.x
      releases. These constants should be removed.

      It has public API that uses a class, FontObject, that is private
      and that clients should not use.

      In addition, Font has API that is unnecessary and encourages
      programmers to write non-internationalizable code. This API
      should be removed.

      The following are prototype implementation constants:

      public static final ints MAX_STANDARD, MAX_LIGATURE,
      MAX_COMBINING, and MAX_COMPONENT.

      The following uses an implementation-only class in public api:

      public Font(FontObject)

      The following call is implementation only:

      public float[] getMetrics(GlyphSet, AffineTransform)

      The following call does not support bidirectional text or text
      that requires multiple baselines:

      public GlyphSet getGlyphSet(String)

      The following calls will not work properly for international
      text that requires shaping or reordering.

      public float getAdvance(char)
      public float getAdvance(char[])

      ======================================================================

            jkaulorcl Jeet Kaul (Inactive)
            bcbeck Brian Beck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: