Class CIDFontType0


public class CIDFontType0 extends BuiltinFont
************************************************************************** At the moment this is not fully supported to parse CID based fonts As a hack we try to use a built in font as substitution and use a toUnicode map to translate the characters if available.
Since:
03.08.2011 **************************************************************************
Version:
$Id: CIDFontType0.java,v 1.1 2011-08-03 15:48:56 bros Exp $ Author Bernd Rosstauscher
  • Constructor Details

  • Method Details

    • parseToUnicodeMap

      public void parseToUnicodeMap(PDFObject fontObj) throws IOException

      parseToUnicodeMap.

      Parameters:
      fontObj - a PDFObject object.
      Throws:
      IOException - if any.
    • getGlyph

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

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