Package com.sun.pdfview.font.ttf
Class CMapFormat6
java.lang.Object
com.sun.pdfview.font.ttf.CMap
com.sun.pdfview.font.ttf.CMapFormat6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate short
Number of character codes in subrange.private short
First character code of subrange.private short[]
Array of glyph index values for character codes in the range.a reverse lookup from glyph id to index. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CMapFormat6
(short language) Creates a new instance of CMapFormat0 -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Get the data in the map as a byte buffershort
Get the length of this tablebyte
map
(byte src) Cannot map from a bytechar
map
(char src) Map from charchar
reverseMap
(short glyphID) Get the src code which maps to the given glyphIDvoid
setData
(int length, ByteBuffer data) Get the data in this map as a ByteBuffer
-
Field Details
-
firstCode
private short firstCodeFirst character code of subrange. -
entryCount
private short entryCountNumber of character codes in subrange. -
glyphIndexArray
private short[] glyphIndexArrayArray of glyph index values for character codes in the range. -
glyphLookup
a reverse lookup from glyph id to index.
-
-
Constructor Details
-
CMapFormat6
protected CMapFormat6(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) Cannot map from a byte -
map
public char map(char src) Map from char -
reverseMap
public char reverseMap(short glyphID) Get the src code which maps to the given glyphID- Specified by:
reverseMap
in classCMap
-
setData
Get the data in this map as a ByteBuffer -
getData
Get the data in the map as a byte buffer
-