public class IndentityGlyphMapper extends GlyphMapper
Constructor and Description |
---|
IndentityGlyphMapper(java.util.Map fontDict,
PDFFile srcfile) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canHandleEncoding(java.lang.String pdfEncodingName) |
boolean |
isMultiByte()
Returns true if the encoding consumes more than single byte for a character.
|
int |
mapBytesToChars(byte[] inbytes,
int offset,
int length,
char[] outchars)
The workhorse.
|
int |
mapCharsToGIDs(char[] cidbuffer,
int ncids,
int[] gidbuffer)
Does the cid->gid mapping, if it knows how.
|
int |
maximumOutputBufferSize(byte[] inbytes,
int offset,
int length)
Quickly returns the maximum number of chars that could result from the conversion of inbytes bytes according to
the encoding.
|
void |
setCIDToGIDMap(java.lang.Object mapobj)
For CID fonts that know how to map their cids directly into glyph indices.
|
boolean |
supportsCIDToGIDMapping()
Returns true if encoding knows how to convert to glyph indices.
|
adobeGlyphNameToUnicode, createGlyphMapper, main
public IndentityGlyphMapper(java.util.Map fontDict, PDFFile srcfile)
public static boolean canHandleEncoding(java.lang.String pdfEncodingName)
public void setCIDToGIDMap(java.lang.Object mapobj)
setCIDToGIDMap
in class GlyphMapper
public boolean isMultiByte()
GlyphMapper
isMultiByte
in class GlyphMapper
public int maximumOutputBufferSize(byte[] inbytes, int offset, int length)
GlyphMapper
maximumOutputBufferSize
in class GlyphMapper
public int mapBytesToChars(byte[] inbytes, int offset, int length, char[] outchars)
GlyphMapper
mapBytesToChars
in class GlyphMapper
public boolean supportsCIDToGIDMapping()
GlyphMapper
supportsCIDToGIDMapping
in class GlyphMapper
public int mapCharsToGIDs(char[] cidbuffer, int ncids, int[] gidbuffer)
GlyphMapper
mapCharsToGIDs
in class GlyphMapper