Package com.sun.pdfview.font.ttf
Class CMapFormat0
- java.lang.Object
-
- com.sun.pdfview.font.ttf.CMap
-
- com.sun.pdfview.font.ttf.CMapFormat0
-
public class CMapFormat0 extends CMap
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]glyphIndexThe glyph index array
-
Constructor Summary
Constructors Modifier Constructor Description protectedCMapFormat0(short language)Creates a new instance of CMapFormat0
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffergetData()Get the data in this map as a ByteBuffershortgetLength()Get the length of this tableprotected byte[]getMap()Get the whole mapbytemap(byte src)Map from a bytecharmap(char src)Cannot map from shortcharreverseMap(short glyphID)Get the src code which maps to the given glyphIDvoidsetData(int length, java.nio.ByteBuffer data)Read the map in from a byte buffervoidsetMap(byte[] glyphIndex)Set the entire mapvoidsetMap(byte src, byte dest)Set a single mapping entry
-
-
-
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:
reverseMapin 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
public java.nio.ByteBuffer getData()
Get the data in this map as a ByteBuffer
-
-