Class AFPFontAttributes

java.lang.Object
org.apache.fop.afp.fonts.AFPFontAttributes

public class AFPFontAttributes extends Object
This class encapsulates the font attributes that need to be included in the AFP data stream. This class does not assist in converting the font attributes to AFP code pages and character set values.
  • Constructor Details

    • AFPFontAttributes

      public AFPFontAttributes(String fontKey, AFPFont font, int pointSize)
      Constructor for the AFPFontAttributes
      Parameters:
      fontKey - the font key
      font - the font
      pointSize - the point size
  • Method Details

    • getFont

      public AFPFont getFont()
      Return the font
      Returns:
      the font
    • getFontKey

      public String getFontKey()
      Return the FontKey attribute
      Returns:
      the FontKey attribute
    • getPointSize

      public int getPointSize()
      Return the point size attribute
      Returns:
      the point size attribute
    • getFontReference

      public int getFontReference()
      Return the FontReference attribute
      Returns:
      the FontReference attribute
    • setFontReference

      public void setFontReference(int fontReference)
      Sets the FontReference attribute
      Parameters:
      fontReference - the FontReference to set
    • toString

      public String toString()
      Overrides:
      toString in class Object