Package com.sun.pdfview.font
Class PDFCMap
java.lang.Object
com.sun.pdfview.font.PDFCMap
A CMap maps from a character in a composite font to a font/glyph number
pair in a CID font.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PDFCMap
Get a CMap, given a PDF object containing one of the following: a string name of a known CMap a stream containing a CMap definitionstatic PDFCMap
Get a CMap, given a string nameint
getFontID
(char src) Get the font number assoicated with a given source characterabstract char
map
(char src) Map a given source character to a destination characterprotected static PDFCMap
Parse a CMap from a CMap streamprotected static void
Populate the cache with well-known types
-
Field Details
-
cache
A cache of known CMaps by name
-
-
Constructor Details
-
PDFCMap
protected PDFCMap()Creates a new instance of CMap
-
-
Method Details
-
getCMap
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- Throws:
IOException
-
getCMap
Get a CMap, given a string name- Throws:
IOException
-
populateCache
protected static void populateCache()Populate the cache with well-known types -
parseCMap
Parse a CMap from a CMap stream- Throws:
IOException
-
map
public abstract char map(char src) Map a given source character to a destination character -
getFontID
public int getFontID(char src) Get the font number assoicated with a given source character
-