Class AWTFontFamily

java.lang.Object
org.pentaho.reporting.libraries.fonts.awt.AWTFontFamily
All Implemented Interfaces:
java.io.Serializable, FontFamily

public class AWTFontFamily extends java.lang.Object implements FontFamily
Creation-Date: 16.12.2005, 20:44:11
Author:
Thomas Morgner
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    AWTFontFamily(java.lang.String fontName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(java.lang.Object o)
     
    java.lang.String[]
     
    java.lang.String
    Returns the name of the font family (in english).
    getFontRecord(boolean bold, boolean italics)
    This selects the most suitable font in that family.
    int
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AWTFontFamily

      public AWTFontFamily(java.lang.String fontName)
  • Method Details

    • getFamilyName

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

      public java.lang.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(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object