Package com.sun.pdfview.font.ttf
Class CMapFormat4
- java.lang.Object
-
- com.sun.pdfview.font.ttf.CMap
-
- com.sun.pdfview.font.ttf.CMapFormat4
-
public class CMapFormat4 extends CMap
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
CMapFormat4.Segment
-
Field Summary
Fields Modifier and Type Field Description java.util.SortedMap<CMapFormat4.Segment,java.lang.Object>
segments
The segments and associated data can be a char[] or an Integer
-
Constructor Summary
Constructors Modifier Constructor Description protected
CMapFormat4(short language)
Creates a new instance of CMapFormat0
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSegment(short startCode, short endCode, char[] map)
Add a segment with a mapvoid
addSegment(short startCode, short endCode, short idDelta)
Add a segment with an idDeltajava.nio.ByteBuffer
getData()
Get the data in the map as a byte buffershort
getEntrySelector()
Get the entry selectorshort
getLength()
Get the length of this tableshort
getRangeShift()
Get the rangeShift()short
getSearchRange()
Get the search rangeshort
getSegmentCount()
Get the segment countbyte
map(byte src)
Cannot map from a bytechar
map(char src)
Map from charvoid
removeSegment(short startCode, short endCode)
Remove a segmentchar
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 ByteBufferjava.lang.String
toString()
Get a pretty string-
Methods inherited from class com.sun.pdfview.font.ttf.CMap
createMap, getFormat, getLanguage, getMap
-
-
-
-
Field Detail
-
segments
public java.util.SortedMap<CMapFormat4.Segment,java.lang.Object> segments
The segments and associated data can be a char[] or an Integer
-
-
Method Detail
-
addSegment
public void addSegment(short startCode, short endCode, char[] map)
Add a segment with a map
-
addSegment
public void addSegment(short startCode, short endCode, short idDelta)
Add a segment with an idDelta
-
removeSegment
public void removeSegment(short startCode, short endCode)
Remove a segment
-
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
-
getData
public java.nio.ByteBuffer getData()
Get the data in the map as a byte buffer
-
getSegmentCount
public short getSegmentCount()
Get the segment count
-
getSearchRange
public short getSearchRange()
Get the search range
-
getEntrySelector
public short getEntrySelector()
Get the entry selector
-
getRangeShift
public short getRangeShift()
Get the rangeShift()
-
-