public class CMapFormat4 extends CMap
Modifier and Type | Field and Description |
---|---|
java.util.SortedMap<com.sun.pdfview.font.ttf.CMapFormat4.Segment,java.lang.Object> |
segments
The segments and associated data can be a char[] or an Integer
|
Modifier | Constructor and Description |
---|---|
protected |
CMapFormat4(short language)
Creates a new instance of CMapFormat0
|
Modifier and Type | Method and Description |
---|---|
void |
addSegment(short startCode,
short endCode,
char[] map)
Add a segment with a map
|
void |
addSegment(short startCode,
short endCode,
short idDelta)
Add a segment with an idDelta
|
java.nio.ByteBuffer |
getData()
Get the data in the map as a byte buffer
|
short |
getEntrySelector()
Get the entry selector
|
short |
getLength()
Get the length of this table
|
short |
getRangeShift()
Get the rangeShift()
|
short |
getSearchRange()
Get the search range
|
short |
getSegmentCount()
Get the segment count
|
byte |
map(byte src)
Cannot map from a byte
|
char |
map(char src)
Map from char
|
void |
removeSegment(short startCode,
short endCode)
Remove a segment
|
char |
reverseMap(short glyphID)
Get the src code which maps to the given glyphID
|
void |
setData(int length,
java.nio.ByteBuffer data)
Get the data in this map as a ByteBuffer
|
java.lang.String |
toString()
Get a pretty string
|
createMap, getFormat, getLanguage, getMap
public java.util.SortedMap<com.sun.pdfview.font.ttf.CMapFormat4.Segment,java.lang.Object> segments
protected CMapFormat4(short language)
public void addSegment(short startCode, short endCode, char[] map)
public void addSegment(short startCode, short endCode, short idDelta)
public void removeSegment(short startCode, short endCode)
public short getLength()
public char reverseMap(short glyphID)
reverseMap
in class CMap
public void setData(int length, java.nio.ByteBuffer data)
public java.nio.ByteBuffer getData()
public short getSegmentCount()
public short getSearchRange()
public short getEntrySelector()
public short getRangeShift()