Package com.sun.pdfview.font.ttf
Class CMapFormat0
java.lang.Object
com.sun.pdfview.font.ttf.CMap
com.sun.pdfview.font.ttf.CMapFormat0
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CMapFormat0
(short language) Creates a new instance of CMapFormat0 -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Get the data in this map as a ByteBuffershort
Get the length of this tableprotected byte[]
getMap()
Get the whole mapbyte
map
(byte src) Map from a bytechar
map
(char src) Cannot map from shortchar
reverseMap
(short glyphID) Get the src code which maps to the given glyphIDvoid
setData
(int length, ByteBuffer data) Read the map in from a byte buffervoid
setMap
(byte[] glyphIndex) Set the entire mapvoid
setMap
(byte src, byte dest) Set a single mapping entry
-
Field Details
-
glyphIndex
private byte[] glyphIndexThe glyph index array
-
-
Constructor Details
-
CMapFormat0
protected CMapFormat0(short language) Creates a new instance of CMapFormat0
-
-
Method Details
-
getLength
public short getLength()Get the length of this table -
map
public byte map(byte src) Map from a byte -
map
public char map(char src) Cannot map from short -
reverseMap
public char reverseMap(short glyphID) Get the src code which maps to the given glyphID- Specified by:
reverseMap
in classCMap
-
setMap
public void setMap(byte[] glyphIndex) Set the entire map -
setMap
public void setMap(byte src, byte dest) Set a single mapping entry -
getMap
protected byte[] getMap()Get the whole map -
getData
Get the data in this map as a ByteBuffer -
setData
Read the map in from a byte buffer
-