Class PostTable
java.lang.Object
org.loboevolution.pdfview.font.ttf.TrueTypeTable
org.loboevolution.pdfview.font.ttf.PostTable
Model the TrueType Post table
Author jkaplan
-
Field Summary
Fields inherited from class org.loboevolution.pdfview.font.ttf.TrueTypeTable
CMAP_TABLE, GLYF_TABLE, HEAD_TABLE, HHEA_TABLE, HMTX_TABLE, LOCA_TABLE, MAXP_TABLE, NAME_TABLE, POST_TABLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
getGlyphName
(char c) Map a character code to a glyphIndex nameshort
getGlyphNameIndex
(String name) Map a character name to a glyphNameIndexint
Get the size of the table, in bytesvoid
setData
(ByteBuffer data) Methods inherited from class org.loboevolution.pdfview.font.ttf.TrueTypeTable
createTable, createTable, stringToTag, tagToString, toString
-
Constructor Details
-
PostTable
protected PostTable()Creates a new instance of PostTable
-
-
Method Details
-
getGlyphNameIndex
Map a character name to a glyphNameIndex- Parameters:
name
- aString
object.- Returns:
- a short.
-
getGlyphName
Map a character code to a glyphIndex name- Parameters:
c
- a char.- Returns:
- a
String
object.
-
getData
get the data in this map as a ByteBuffer
-
setData
Initialize this structure from a ByteBuffer
-
getLength
public int getLength()Get the size of the table, in bytesGet the length of this table
- Overrides:
getLength
in classTrueTypeTable
- Returns:
- a
Integer
object.
-