com.sun.pdfview.font.ttf
public class NameTable extends TrueTypeTable
Field Summary | |
---|---|
static short | ENCODINGID_MAC_ROMAN
Values for platformSpecificID if platform is Mac |
static short | ENCODINGID_UNICODE_DEFAULT
Values for platformSpecificID if platform is Unicode |
static short | ENCODINGID_UNICODE_V11 |
static short | ENCODINGID_UNICODE_V2 |
static short | LANGUAGEID_MAC_ENGLISH
Values for language ID if platform is Mac |
static short | NAMEID_COPYRIGHT
Values for nameID |
static short | NAMEID_FAMILY |
static short | NAMEID_FULL_NAME |
static short | NAMEID_POSTSCRIPT_NAME |
static short | NAMEID_SUBFAMILY |
static short | NAMEID_SUBFAMILY_UNIQUE |
static short | NAMEID_TRADEMARK |
static short | NAMEID_VERSION |
static short | PLATFORMID_MACINTOSH |
static short | PLATFORMID_MICROSOFT |
static short | PLATFORMID_UNICODE
Values for platformID |
Constructor Summary | |
---|---|
protected | NameTable() Creates a new instance of NameTable |
Method Summary | |
---|---|
void | addRecord(short platformID, short platformSpecificID, short languageID, short nameID, String value)
Add a record to the table |
static String | getCharsetName(int platformID, int encodingID)
Get the charset name for a given platform, encoding and language |
short | getCount()
Get the number of records in the table |
ByteBuffer | getData()
Get the data in this table as a buffer |
short | getFormat()
Get the format of this table |
int | getLength()
Get the length of this table |
String | getRecord(short platformID, short platformSpecificID, short languageID, short nameID)
Get a record from the table |
boolean | hasRecords(short platformID)
Determine if we have any records with a given platform ID |
boolean | hasRecords(short platformID, short platformSpecificID)
Determine if we have any records with a given platform ID and
platform-specific ID |
void | removeRecord(short platformID, short platformSpecificID, short languageID, short nameID)
Remove a record from the table |
void | setData(ByteBuffer data)
Read the table from data |
void | setFormat(short format)
Set the format of this table |
String | toString() Get a pretty string |