Class TrueTypeFont

java.lang.Object
de.erichseifert.vectorgraphics2d.pdf.TrueTypeFont
All Implemented Interfaces:
PDFObject

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

    • encoding

      private final String encoding
    • baseFont

      private final String baseFont
  • Constructor Details

    • TrueTypeFont

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

    • getEncoding

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

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

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

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