public static class Font.Typeface
extends java.lang.Object
implements java.io.Serializable
TypeFace object
in the event that the primary one is not available on a given
client. In this way, a chain of alternates may be created for
a very specific face, e.g.:
"Verdana->Arial->Helvetica->Sans-Serif"| Constructor and Description |
|---|
Font.Typeface(java.lang.String name)
Creates a new
Typeface. |
Font.Typeface(java.lang.String name,
Font.Typeface alternate)
Creates a new
Typeface. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Font.Typeface |
getAlternate()
Returns the alternate typeface.
|
java.lang.String |
getName()
Returns the name of the typeface.
|
java.lang.String |
toString()
Renders a debug representation of the object.
|
public Font.Typeface(java.lang.String name)
Typeface.name - the type face namepublic Font.Typeface(java.lang.String name,
Font.Typeface alternate)
Typeface.name - the type face namealternate - the alternate type face which should be used, in
case the client does not support the specified type facepublic boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public Font.Typeface getAlternate()
Typefacepublic java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()