public class

FontFamily

extends Object
java.lang.Object
   ↳ sun.font.FontFamily

Summary

Fields
protected Font2D bold
protected Font2D bolditalic
protected String familyName
protected int familyRank
protected Font2D italic
protected boolean logicalFont
protected Font2D plain
Public Constructors
FontFamily(String name, boolean isLogFont, int rank)
Public Methods
static String[] getAllFamilyNames()
static FontFamily getFamily(String name)
String getFamilyName()
Font2D getFont(int style)
Font2D getFontWithExactStyleMatch(int style)
synchronized static FontFamily getLocaleFamily(String name)
int getRank()
void setFont(Font2D font, int style)
String toString()
Returns a string representation of the object.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected Font2D bold

protected Font2D bolditalic

protected String familyName

protected int familyRank

protected Font2D italic

protected boolean logicalFont

protected Font2D plain

Public Constructors

public FontFamily (String name, boolean isLogFont, int rank)

Public Methods

public static String[] getAllFamilyNames ()

public static FontFamily getFamily (String name)

public String getFamilyName ()

public Font2D getFont (int style)

public Font2D getFontWithExactStyleMatch (int style)

public static synchronized FontFamily getLocaleFamily (String name)

public int getRank ()

public void setFont (Font2D font, int style)

public String toString ()

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
  • a string representation of the object.