Class Type0Font

java.lang.Object
com.sun.pdfview.font.PDFFont
com.sun.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
  • Field Details

    • fonts

      PDFFont[] fonts
      The decendant fonts, indexed by font number from the CMAP
  • Constructor Details

  • Method Details

    • getDescendantFont

      public PDFFont getDescendantFont(int fontID)
      Get a descendant font of this font by fontId
    • getGlyph

      protected PDFGlyph getGlyph(char src, String name)
      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