Package com.sun.pdfview.font.ttf
Class CMapFormat6
- java.lang.Object
-
- com.sun.pdfview.font.ttf.CMap
-
- com.sun.pdfview.font.ttf.CMapFormat6
-
public class CMapFormat6 extends CMap
-
-
Field Summary
Fields Modifier and Type Field Description private short
entryCount
Number of character codes in subrange.private short
firstCode
First character code of subrange.private short[]
glyphIndexArray
Array of glyph index values for character codes in the range.private java.util.HashMap<java.lang.Short,java.lang.Short>
glyphLookup
a reverse lookup from glyph id to index.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CMapFormat6(short language)
Creates a new instance of CMapFormat0
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
getData()
Get the data in the map as a byte buffershort
getLength()
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, java.nio.ByteBuffer data)
Get the data in this map as a ByteBuffer
-
-
-
Field Detail
-
firstCode
private short firstCode
First character code of subrange.
-
entryCount
private short entryCount
Number of character codes in subrange.
-
glyphIndexArray
private short[] glyphIndexArray
Array of glyph index values for character codes in the range.
-
glyphLookup
private java.util.HashMap<java.lang.Short,java.lang.Short> glyphLookup
a reverse lookup from glyph id to index.
-
-
Method Detail
-
getLength
public short getLength()
Get the length of this table
-
reverseMap
public char reverseMap(short glyphID)
Get the src code which maps to the given glyphID- Specified by:
reverseMap
in classCMap
-
setData
public void setData(int length, java.nio.ByteBuffer data)
Get the data in this map as a ByteBuffer
-
-