com.sun.pdfview.font.ttf

Class CMapFormat0

public class CMapFormat0 extends CMap

Constructor Summary
protected CMapFormat0(short language)
Creates a new instance of CMapFormat0
Method Summary
ByteBuffergetData()
Get the data in this map as a ByteBuffer
shortgetLength()
Get the length of this table
protected byte[]getMap()
Get the whole map
bytemap(byte src)
Map from a byte
charmap(char src)
Cannot map from short
charreverseMap(short glyphID)
Get the src code which maps to the given glyphID
voidsetData(int length, ByteBuffer data)
Read the map in from a byte buffer
voidsetMap(byte[] glyphIndex)
Set the entire map
voidsetMap(byte src, byte dest)
Set a single mapping entry

Constructor Detail

CMapFormat0

protected CMapFormat0(short language)
Creates a new instance of CMapFormat0

Method Detail

getData

public ByteBuffer getData()
Get the data in this map as a ByteBuffer

getLength

public short getLength()
Get the length of this table

getMap

protected byte[] getMap()
Get the whole map

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

setData

public void setData(int length, ByteBuffer data)
Read the map in from a byte buffer

setMap

public void setMap(byte[] glyphIndex)
Set the entire map

setMap

public void setMap(byte src, byte dest)
Set a single mapping entry