United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4892261 : Spec clarification needed for java.awt.Font.

Details
Type:
Bug
Submit Date:
2003-07-17
Status:
Resolved
Updated Date:
2003-08-11
Project Name:
JDK
Resolved Date:
2003-08-11
Component:
client-libs
OS:
solaris_2.5,generic
Sub-Component:
2d
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
pbp_1.0,1.0-b28,5.0
Fixed Versions:
5.0 (tiger)

Related Reports

Sub Tasks

Description
java.awt.Font documents that its constructors accepts logical font names
like "Serif" and font face names, like "Lucida Sans Regular"

GraphicsEnvironment.getAllFonts() will return fonts whose face names
are for logical fonts are, for example, "serif.bold"

The implication is that "serif.bold" is a valid name to pass in to
Font's constructor.

But there isn't explicit provision for accepting font family names
even though "Serif" is arguably the "family" name for a logical font
and the GraphicsEnvironment.getAvailableFontFamilyNames() API will
return family names like "Lucida Sans" and further documents that
these are useful in specifying just the family allowing the implementation
to pick up the most appropriate style.

Furthermore, when a face name is specified, there is no specification
how this is combined with "style" parameter, or with style attributes
supplied in a map.
 

                                    

Comments
EVALUATION

I believe we should document that family names are accepted and that
if a face name is specified, if a style other than PLAIN is separately
specified that is different from the true style of the specified font face
name, the implementation will attempt to provide the most appropriate font,
even if it means using a different font than the one specified by the face name.

This is consistent with historical implementation as well as likely being
the most useful interpretation.

###@###.### 2003-07-17
============================
                                     
2003-07-17
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b15


                                     
2004-10-02



Hardware and Software, Engineered to Work Together