Package com.sun.pdfview.font.ttf
Class PostTable.PostMapFormat2
java.lang.Object
com.sun.pdfview.font.ttf.PostTable.PostMap
com.sun.pdfview.font.ttf.PostTable.PostMapFormat0
com.sun.pdfview.font.ttf.PostTable.PostMapFormat2
- Enclosing class:
PostTable
an extension to handle format 2 post maps
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) short[]
the glyph name index(package private) String[]
the glyph namesFields inherited from class com.sun.pdfview.font.ttf.PostTable.PostMapFormat0
stdNames
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) short
getCharIndex
(String charName) Map a character name to an index(package private) String
getCharName
(char charIndex) Map an index to a character name(package private) ByteBuffer
getData()
get the data in this map as a byte array(package private) int
get the length of this class's data(package private) void
setData
(ByteBuffer data) set the contents of this map from a ByteBuffer
-
Field Details
-
glyphNameIndex
short[] glyphNameIndexthe glyph name index -
glyphNames
String[] glyphNamesthe glyph names
-
-
Constructor Details
-
PostMapFormat2
PostMapFormat2()
-
-
Method Details
-
getCharIndex
Map a character name to an index- Overrides:
getCharIndex
in classPostTable.PostMapFormat0
-
getCharName
Map an index to a character name- Overrides:
getCharName
in classPostTable.PostMapFormat0
-
getLength
int getLength()get the length of this class's data- Overrides:
getLength
in classPostTable.PostMapFormat0
-
getData
ByteBuffer getData()get the data in this map as a byte array- Overrides:
getData
in classPostTable.PostMapFormat0
-
setData
set the contents of this map from a ByteBuffer- Overrides:
setData
in classPostTable.PostMapFormat0
-