Class Type0Font

java.lang.Object
org.loboevolution.pdfview.font.PDFFont
org.loboevolution.pdfview.font.Type0Font

public class Type0Font extends PDFFont
Type 0 fonts are composite fonts with a CMAP to map between source character codes and destination fonts/codes

Author Jonathan Kaplan

  • Constructor Details

  • Method Details

    • getDescendantFont

      public PDFFont getDescendantFont(int fontID)
      Get a descendant font of this font by fontId
      Parameters:
      fontID - a Integer object.
      Returns:
      a PDFFont object.
    • getGlyph

      protected PDFGlyph getGlyph(char src, String name)
      Get the glyph for a given character code and name

      The preferred method of getting the glyph should be by name. If the name is null or not valid, then the character code should be used. If the both the code and the name are invalid, the undefined glyph should be returned.

      Note this method must *always* return a glyph.

      Get a character from the first font in the descendant fonts array

      Specified by:
      getGlyph in class PDFFont
      Parameters:
      src - the character code of this glyph
      name - the name of this glyph or null if unknown
      Returns:
      a glyph for this character