public class NameRecord
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
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.
|
Constructor | Description |
---|---|
NameRecord() |
Modifier and Type | Method | Description |
---|---|---|
int |
getLanguageId() |
|
int |
getNameId() |
|
int |
getPlatformEncodingId() |
|
int |
getPlatformId() |
|
java.lang.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(java.lang.String stringValue) |
|
void |
setStringLength(int stringLengthValue) |
|
void |
setStringOffset(int stringOffsetValue) |
|
java.lang.String |
toString() |
Return a string representation of this class.
|
public static final int PLATFORM_APPLE_UNICODE
public static final int PLATFORM_MACINTOSH
public static final int PLATFORM_ISO
public static final int PLATFORM_WINDOWS
public static final int PLATFORM_ENCODING_WINDOWS_UNDEFINED
public static final int PLATFORM_ENCODING_WINDOWS_UNICODE
public static final int NAME_COPYRIGHT
public static final int NAME_FONT_FAMILY_NAME
public static final int NAME_FONT_SUB_FAMILY_NAME
public static final int NAME_UNIQUE_FONT_ID
public static final int NAME_FULL_FONT_NAME
public static final int NAME_VERSION
public static final int NAME_POSTSCRIPT_NAME
public static final int NAME_TRADEMARK
public int getStringLength()
public void setStringLength(int stringLengthValue)
stringLengthValue
- The stringLength to set.public int getStringOffset()
public void setStringOffset(int stringOffsetValue)
stringOffsetValue
- The stringOffset to set.public int getLanguageId()
public void setLanguageId(int languageIdValue)
languageIdValue
- The languageId to set.public int getNameId()
public void setNameId(int nameIdValue)
nameIdValue
- The nameId to set.public int getPlatformEncodingId()
public void setPlatformEncodingId(int platformEncodingIdValue)
platformEncodingIdValue
- The platformEncodingId to set.public int getPlatformId()
public void setPlatformId(int platformIdValue)
platformIdValue
- The platformId to set.public void initData(TrueTypeFont ttf, TTFDataStream data) throws java.io.IOException
ttf
- The font that is being read.data
- The stream to read the data from.java.io.IOException
- If there is an error reading the data.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getString()
public void setString(java.lang.String stringValue)
stringValue
- The string to set.Copyright © 2008–2018. All rights reserved.