Class CMapFormat6
java.lang.Object
org.loboevolution.pdfview.font.ttf.CMap
org.loboevolution.pdfview.font.ttf.CMapFormat6
CMapFormat6 class.
Author jkaplan
-
Constructor Summary
ModifierConstructorDescriptionprotected
CMapFormat6
(short language) Creates a new instance of CMapFormat0 -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Get the data in this map as a byte buffershort
Get the length of this mapbyte
map
(byte src) Map an 8 bit value to another 8 bit valuechar
map
(char src) Map a 16 bit value to another 16 but valuechar
reverseMap
(short glyphID) Get the src code which maps to the given glyphIDvoid
setData
(int length, ByteBuffer data) Set the data for this map
-
Constructor Details
-
CMapFormat6
protected CMapFormat6(short language) Creates a new instance of CMapFormat0- Parameters:
language
- a short.
-
-
Method Details
-
getLength
public short getLength()Get the length of this mapGet the length of this table
-
map
public byte map(byte src) Map an 8 bit value to another 8 bit valueCannot map from a byte
-
map
public char map(char src) Map a 16 bit value to another 16 but valueMap from char
-
reverseMap
public char reverseMap(short glyphID) Get the src code which maps to the given glyphIDGet the src code which maps to the given glyphID
- Specified by:
reverseMap
in classCMap
- Parameters:
glyphID
- a short.- Returns:
- a char.
-
setData
Set the data for this mapGet the data in this map as a ByteBuffer
- Specified by:
setData
in classCMap
- Parameters:
length
- aInteger
object.data
- aByteBuffer
object.
-
getData
Get the data in this map as a byte bufferGet the data in the map as a byte buffer
- Specified by:
getData
in classCMap
- Returns:
- a
ByteBuffer
object.
-