org.apache.fontbox.ttf
public class NameRecord extends Object
Version: $Revision: 1.1 $
Field Summary | |
---|---|
static int | NAME_COPYRIGHT
A name id. |
static int | NAME_FONT_FAMILY_NAME
A name id. |
static int | NAME_FONT_SUB_FAMILY_NAME
A name id. |
static int | NAME_FULL_FONT_NAME
A name id. |
static int | NAME_POSTSCRIPT_NAME
A name id. |
static int | NAME_TRADEMARK
A name id. |
static int | NAME_UNIQUE_FONT_ID
A name id. |
static int | NAME_VERSION
A name id. |
static int | PLATFORM_APPLE_UNICODE
A constant for the platform. |
static int | PLATFORM_ENCODING_WINDOWS_UNDEFINED
Platform specific encoding. |
static int | PLATFORM_ENCODING_WINDOWS_UNICODE
Platform specific encoding. |
static int | PLATFORM_ISO
A constant for the platform. |
static int | PLATFORM_MACINTOSH
A constant for the platform. |
static int | PLATFORM_WINDOWS
A constant for the platform. |
Method Summary | |
---|---|
int | getLanguageId() |
int | getNameId() |
int | getPlatformEncodingId() |
int | getPlatformId() |
String | getString() |
int | getStringLength() |
int | getStringOffset() |
void | initData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.
|
void | setLanguageId(int languageIdValue) |
void | setNameId(int nameIdValue) |
void | setPlatformEncodingId(int platformEncodingIdValue) |
void | setPlatformId(int platformIdValue) |
void | setString(String stringValue) |
void | setStringLength(int stringLengthValue) |
void | setStringOffset(int stringOffsetValue) |
String | toString()
Return a string representation of this class.
|
Returns: Returns the languageId.
Returns: Returns the nameId.
Returns: Returns the platformEncodingId.
Returns: Returns the platformId.
Returns: Returns the string.
Returns: Returns the stringLength.
Returns: Returns the stringOffset.
Parameters: ttf The font that is being read. data The stream to read the data from.
Throws: IOException If there is an error reading the data.
Parameters: languageIdValue The languageId to set.
Parameters: nameIdValue The nameId to set.
Parameters: platformEncodingIdValue The platformEncodingId to set.
Parameters: platformIdValue The platformId to set.
Parameters: stringValue The string to set.
Parameters: stringLengthValue The stringLength to set.
Parameters: stringOffsetValue The stringOffset to set.
Returns: A string for this class.