Class CMapFormat6
java.lang.Object
org.openpdf.renderer.font.ttf.CMap
org.openpdf.renderer.font.ttf.CMapFormat6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate shortNumber of character codes in subrange.private shortFirst character code of subrange.private short[]Array of glyph index values for character codes in the range.a reverse lookup from glyph id to index. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCMapFormat6(short language) Creates a new instance of CMapFormat0 -
Method Summary
Modifier and TypeMethodDescriptiongetData()Get the data in the map as a byte buffershortGet the length of this tablebytemap(byte src) Cannot map from a bytecharmap(char src) Map from charcharreverseMap(short glyphID) Get the src code which maps to the given glyphIDvoidsetData(int length, ByteBuffer data) Get the data in this map as a ByteBuffer
-
Field Details
-
firstCode
private short firstCodeFirst character code of subrange. -
entryCount
private short entryCountNumber of character codes in subrange. -
glyphIndexArray
private short[] glyphIndexArrayArray of glyph index values for character codes in the range. -
glyphLookup
-
-
Constructor Details
-
CMapFormat6
protected CMapFormat6(short language) Creates a new instance of CMapFormat0
-
-
Method Details
-
getLength
-
map
-
map
-
reverseMap
public char reverseMap(short glyphID) Get the src code which maps to the given glyphID- Specified by:
reverseMapin classCMap
-
setData
Get the data in this map as a ByteBuffer -
getData
Get the data in the map as a byte buffer
-