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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()getGlyphName(char c) Map a character code to a glyphIndex nameshortgetGlyphNameIndex(String name) Map a character name to a glyphNameIndexintGet the size of the table, in bytesvoidsetData(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- aStringobject.- Returns:
- a short.
-
getGlyphName
Map a character code to a glyphIndex name- Parameters:
c- a char.- Returns:
- a
Stringobject.
-
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:
getLengthin classTrueTypeTable- Returns:
- a
Integerobject.
-