com.sun.pdfview.font.ttf
public class TrueTypeTable extends Object
Field Summary | |
---|---|
static int | CMAP_TABLE
Well known tables |
static int | GLYF_TABLE |
static int | HEAD_TABLE |
static int | HHEA_TABLE |
static int | HMTX_TABLE |
static int | LOCA_TABLE |
static int | MAXP_TABLE |
static int | NAME_TABLE |
static int | POST_TABLE |
Constructor Summary | |
---|---|
protected | TrueTypeTable(int tag)
Creates a new instance of TrueTypeTable.
|
Method Summary | |
---|---|
static TrueTypeTable | createTable(TrueTypeFont ttf, String tagString)
Get a new instance of an empty table by tag string
|
static TrueTypeTable | createTable(TrueTypeFont ttf, String tagString, ByteBuffer data)
Get a new instance of a table with provided data
|
ByteBuffer | getData()
Get the data in the table |
int | getLength()
Get the size of the table, in bytes |
int | getTag()
Get the table's tag |
void | setData(ByteBuffer data)
Set the data in the table |
static int | stringToTag(String tag)
Turn a string into a tag |
static String | tagToString(int tag)
Get the tag as a string |
String | toString()
Put into a nice string |
getTable()
methods
to get new instances.
Parameters: tag the tag for this table
Parameters: ttf the font that contains this table tagString the tag for this table, as a 4 character string (e.g. head or cmap)
Parameters: ttf the font that contains this table tagString the tag for this table, as a 4 character string (e.g. head or cmap) data the table data