JDK-4112258 : Font API has prototype API that should be removed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.2.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1998-02-13
  • Updated: 1998-05-06
  • Resolved: 1998-05-06
Related Reports
Duplicate :  
Description

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[])

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

Comments
EVALUATION Judged not a beta 3 blocker. Committed to fix in beta 4.
11-06-2004

WORK AROUND Name: bb33257 Date: 02/13/98 This is a design flaw. These public APIs should be removed. ======================================================================
11-06-2004