Class TrueTypeFont

  • All Implemented Interfaces:
    PDFObject

    class TrueTypeFont
    extends java.lang.Object
    implements PDFObject
    Represents a TrueType font in the sense of the PDF specification.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String baseFont  
      private java.lang.String encoding  
    • Constructor Summary

      Constructors 
      Constructor Description
      TrueTypeFont​(java.lang.String encoding, java.lang.String baseFont)
      Creates a TrueTypeFont with the specified encoding and base font.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBaseFont()
      Returns the name of the base font.
      java.lang.String getEncoding()
      Returns the encoding of this font.
      java.lang.String getSubtype()
      Returns the subtype of this object.
      java.lang.String getType()
      Returns the type of this object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • encoding

        private final java.lang.String encoding
      • baseFont

        private final java.lang.String baseFont
    • Constructor Detail

      • TrueTypeFont

        public TrueTypeFont​(java.lang.String encoding,
                            java.lang.String baseFont)
        Creates a TrueTypeFont with the specified encoding and base font.
        Parameters:
        encoding - Used encoding.
        baseFont - Base font name.
    • Method Detail

      • getEncoding

        public java.lang.String getEncoding()
        Returns the encoding of this font.
        Returns:
        Encoding.
      • getType

        public java.lang.String getType()
        Returns the type of this object. Always returns "Font".
        Returns:
        The String "Font".
      • getSubtype

        public java.lang.String getSubtype()
        Returns the subtype of this object. Always returns "TrueType".
        Returns:
        The String "TrueType".
      • getBaseFont

        public java.lang.String getBaseFont()
        Returns the name of the base font.
        Returns:
        Base font name.