Class AWTFontFamily
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.awt.AWTFontFamily
-
- All Implemented Interfaces:
Serializable
,FontFamily
public class AWTFontFamily extends Object implements FontFamily
Creation-Date: 16.12.2005, 20:44:11- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AWTFontFamily(String fontName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String[]
getAllNames()
String
getFamilyName()
Returns the name of the font family (in english).FontRecord
getFontRecord(boolean bold, boolean italics)
This selects the most suitable font in that family.int
hashCode()
-
-
-
Constructor Detail
-
AWTFontFamily
public AWTFontFamily(String fontName)
-
-
Method Detail
-
getFamilyName
public String getFamilyName()
Returns the name of the font family (in english).- Specified by:
getFamilyName
in interfaceFontFamily
- Returns:
-
getAllNames
public String[] getAllNames()
- Specified by:
getAllNames
in interfaceFontFamily
-
getFontRecord
public FontRecord getFontRecord(boolean bold, boolean italics)
This selects the most suitable font in that family. Italics fonts are preferred over oblique fonts.- Specified by:
getFontRecord
in interfaceFontFamily
- Parameters:
bold
-italics
-- Returns:
-
-