Package org.openpdf.renderer.font.cid
Class PDFCMap
java.lang.Object
org.openpdf.renderer.font.cid.PDFCMap
- Direct Known Subclasses:
ToUnicodeMap
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 PDFCMapGet a CMap, given a string namestatic PDFCMapGet a CMap, given a PDF object containing one of the following: a string name of a known CMap a stream containing a CMap definitionintgetFontID(char src) Get the font number assoicated with a given source characterabstract charmap(char src) Map a given source character to a destination characterprotected static PDFCMapParse a CMap from a CMap streamprotected static voidPopulate 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
-