Class FontInfo

java.lang.Object
org.apache.pdfbox.pdmodel.font.FontInfo

public abstract class FontInfo extends Object
Information about a font on the system.
Author:
John Hewson
  • Constructor Details

    • FontInfo

      public FontInfo()
  • Method Details

    • getPostScriptName

      public abstract String getPostScriptName()
      Returns the PostScript name of the font.
      Returns:
      the PostScript name of the font
    • getFormat

      public abstract FontFormat getFormat()
      Returns the font's format.
      Returns:
      the format of the font
    • getCIDSystemInfo

      public abstract CIDSystemInfo getCIDSystemInfo()
      Returns the CIDSystemInfo associated with the font, if present.
      Returns:
      the CIDSystemInfo of the font if any
    • getFont

      public abstract org.apache.fontbox.FontBoxFont getFont()
      Returns a new FontBox font instance for the font. Implementors of this method must not cache the return value of this method unless doing so via the current FontCache.
      Returns:
      a new FontBox instance of the font
    • getFamilyClass

      public abstract int getFamilyClass()
      Returns the sFamilyClass field of the "OS/2" table, or -1.
      Returns:
      the FamilyClass of the font
    • getWeightClass

      public abstract int getWeightClass()
      Returns the usWeightClass field of the "OS/2" table, or -1.
      Returns:
      the WeightClass of the font
    • getCodePageRange1

      public abstract int getCodePageRange1()
      Returns the ulCodePageRange1 field of the "OS/2" table, or 0.
      Returns:
      the CodePageRange1 of the font if present
    • getCodePageRange2

      public abstract int getCodePageRange2()
      Returns the ulCodePageRange2 field of the "OS/2" table, or 0.
      Returns:
      the CodePageRange2 of the font if present
    • getMacStyle

      public abstract int getMacStyle()
      Returns the macStyle field of the "head" table, or -1.
      Returns:
      the MacStyle of the font
    • getPanose

      public abstract PDPanoseClassification getPanose()
      Returns the Panose classification of the font, if any.
      Returns:
      the PanoseClassification of the font
    • toString

      public String toString()
      Overrides:
      toString in class Object