Package com.sun.pdfview.font.ttf
Class CMapFormat4
java.lang.Object
com.sun.pdfview.font.ttf.CMap
com.sun.pdfview.font.ttf.CMapFormat4
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe segments and associated data can be a char[] or an Integer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CMapFormat4
(short language) Creates a new instance of CMapFormat0 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 idDeltagetData()
Get the data in the map as a byte buffershort
Get the entry selectorshort
Get the length of this tableshort
Get the rangeShift()short
Get the search rangeshort
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, ByteBuffer data) Get the data in this map as a ByteBuffertoString()
Get a pretty stringMethods inherited from class com.sun.pdfview.font.ttf.CMap
createMap, getFormat, getLanguage, getMap
-
Field Details
-
segments
The segments and associated data can be a char[] or an Integer
-
-
Constructor Details
-
CMapFormat4
protected CMapFormat4(short language) Creates a new instance of CMapFormat0
-
-
Method Details
-
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 -
map
public byte map(byte src) Cannot map from a byte -
map
public char map(char src) Map from char -
reverseMap
public char reverseMap(short glyphID) Get the src code which maps to the given glyphID- Specified by:
reverseMap
in classCMap
-
setData
Get the data in this map as a 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() -
toString
Get a pretty string
-