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 booleanequals(Object o)String[]getAllNames()StringgetFamilyName()Returns the name of the font family (in english).FontRecordgetFontRecord(boolean bold, boolean italics)This selects the most suitable font in that family.inthashCode()
-
-
-
Constructor Detail
-
AWTFontFamily
public AWTFontFamily(String fontName)
-
-
Method Detail
-
getFamilyName
public String getFamilyName()
Returns the name of the font family (in english).- Specified by:
getFamilyNamein interfaceFontFamily- Returns:
-
getAllNames
public String[] getAllNames()
- Specified by:
getAllNamesin 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:
getFontRecordin interfaceFontFamily- Parameters:
bold-italics-- Returns:
-
-