Class AFPFontAttributes


  • public class AFPFontAttributes
    extends java.lang.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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private AFPFont font
      the font
      private java.lang.String fontKey
      the font key
      private int fontReference
      the font reference
      private int pointSize
      the point size
    • Constructor Summary

      Constructors 
      Constructor Description
      AFPFontAttributes​(java.lang.String fontKey, AFPFont font, int pointSize)
      Constructor for the AFPFontAttributes
    • Field Detail

      • fontReference

        private int fontReference
        the font reference
      • fontKey

        private final java.lang.String fontKey
        the font key
      • font

        private final AFPFont font
        the font
      • pointSize

        private final int pointSize
        the point size
    • Constructor Detail

      • AFPFontAttributes

        public AFPFontAttributes​(java.lang.String fontKey,
                                 AFPFont font,
                                 int pointSize)
        Constructor for the AFPFontAttributes
        Parameters:
        fontKey - the font key
        font - the font
        pointSize - the point size
    • Method Detail

      • getFont

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

        public java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object