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:
  • Constructor Details

    • MonospaceFontFamily

      public MonospaceFontFamily(String familyName, float lpi, float cpi)
  • Method Details

    • getFamilyName

      public String getFamilyName()
      Returns the name of the font family (in english).
      Specified by:
      getFamilyName in interface FontFamily
      Returns:
    • getAllNames

      public String[] getAllNames()
      Specified by:
      getAllNames in interface FontFamily
    • 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 interface FontFamily
      Parameters:
      bold -
      italics -
      Returns:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object