Class DefaultFontFamily

java.lang.Object
org.pentaho.reporting.libraries.fonts.registry.DefaultFontFamily
All Implemented Interfaces:
Serializable, FontFamily

public class DefaultFontFamily extends Object implements FontFamily
Creation-Date: 07.11.2005, 19:45:50
Author:
Thomas Morgner
See Also:
  • Constructor Details

    • DefaultFontFamily

      public DefaultFontFamily(String familyName)
  • Method Details

    • getFamilyName

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

      public void addName(String name)
    • getAllNames

      public String[] getAllNames()
      Specified by:
      getAllNames in interface FontFamily
    • getFontRecord

      public FontRecord getFontRecord(boolean bold, boolean italics)
      Description copied from interface: FontFamily
      This selects the most suitable font in that family. Italics fonts are preferred over oblique fonts.
      Specified by:
      getFontRecord in interface FontFamily
      Returns:
    • addFontRecord

      public void addFontRecord(FontRecord record)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object