Class MonospaceFontFamily
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.monospace.MonospaceFontFamily
-
- All Implemented Interfaces:
Serializable,FontFamily
public class MonospaceFontFamily extends Object implements FontFamily
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MonospaceFontFamily(String familyName, float lpi, float cpi)
-
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
-
MonospaceFontFamily
public MonospaceFontFamily(String familyName, float lpi, float cpi)
-
-
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:
-
-