com.sun.pdfview.font

Class PDFCMap

public abstract class PDFCMap extends Object

A CMap maps from a character in a composite font to a font/glyph number pair in a CID font.
Constructor Summary
protected PDFCMap()
Creates a new instance of CMap
Method Summary
static PDFCMapgetCMap(PDFObject map)
Get a CMap, given a PDF object containing one of the following: a string name of a known CMap a stream containing a CMap definition
static PDFCMapgetCMap(String mapName)
Get a CMap, given a string name
intgetFontID(char src)
Get the font number assoicated with a given source character
abstract charmap(char src)
Map a given source character to a destination character
protected static PDFCMapparseCMap(PDFObject map)
Parse a CMap from a CMap stream
protected static voidpopulateCache()
Populate the cache with well-known types

Constructor Detail

PDFCMap

protected PDFCMap()
Creates a new instance of CMap

Method Detail

getCMap

public static PDFCMap getCMap(PDFObject map)
Get a CMap, given a PDF object containing one of the following: a string name of a known CMap a stream containing a CMap definition

getCMap

public static PDFCMap getCMap(String mapName)
Get a CMap, given a string name

getFontID

public int getFontID(char src)
Get the font number assoicated with a given source character

map

public abstract char map(char src)
Map a given source character to a destination character

parseCMap

protected static PDFCMap parseCMap(PDFObject map)
Parse a CMap from a CMap stream

populateCache

protected static void populateCache()
Populate the cache with well-known types