Class PDType3Font


public class PDType3Font extends PDSimpleFont
Author:
Sergey Shemyakov
  • Constructor Details

  • Method Details

    • getCharProcDict

      public COSDictionary getCharProcDict()
      Returns:
      dictionary with char proc values.
    • getFontProgram

      public FontProgram getFontProgram()
      Specified by:
      getFontProgram in class PDFont
      Returns:
      embedded font program fo this PDFont.
    • getResources

      public PDResources getResources()
      Returns:
      resources as presented in type 3 font dictionary.
    • getName

      public String getName()
      Overrides:
      getName in class PDFont
      Returns:
      name of the font as specified in BaseFont key of font dictionary.
    • containsCharString

      public boolean containsCharString(int code)
      Checks if char proc dictionary contains char proc for glyph with given code.
      Parameters:
      code - is the code of glyph.
      Returns:
      true if char proc for this glyph is present.
    • getFontBoundingBox

      public double[] getFontBoundingBox()
      Returns:
      a rectangle, expressed in the glyph coordinate system, that shall specify the font bounding box.
    • getFontMatrix

      public double[] getFontMatrix()
    • getWidthFromProgram

      public float getWidthFromProgram(int code)
      Description copied from class: PDFont
      Gets width of given code from font program.
      Specified by:
      getWidthFromProgram in class PDFont
      Parameters:
      code - is code of character in strings to display.
      Returns:
      width of glyph for this code.
    • glyphIsPresent

      public boolean glyphIsPresent(int code)
      Description copied from class: PDFont
      Checks if glyph for given code is present in this font.
      Specified by:
      glyphIsPresent in class PDFont
      Parameters:
      code - is code for glyph in this font.
      Returns:
      true if glyph is present.