org.fontbox.ttf
Class NameRecord
java.lang.Object
org.fontbox.ttf.NameRecord
public class NameRecord
extends java.lang.Object
A name record in the name table.
- Ben Litchfield (ben@benlitchfield.com)
NAME_COPYRIGHT
public static final int NAME_COPYRIGHT
A name id.
NAME_FONT_FAMILY_NAME
public static final int NAME_FONT_FAMILY_NAME
A name id.
NAME_FONT_SUB_FAMILY_NAME
public static final int NAME_FONT_SUB_FAMILY_NAME
A name id.
NAME_FULL_FONT_NAME
public static final int NAME_FULL_FONT_NAME
A name id.
NAME_POSTSCRIPT_NAME
public static final int NAME_POSTSCRIPT_NAME
A name id.
NAME_TRADEMARK
public static final int NAME_TRADEMARK
A name id.
NAME_UNIQUE_FONT_ID
public static final int NAME_UNIQUE_FONT_ID
A name id.
NAME_VERSION
public static final int NAME_VERSION
A name id.
PLATFORM_APPLE_UNICODE
public static final int PLATFORM_APPLE_UNICODE
A constant for the platform.
PLATFORM_ENCODING_WINDOWS_UNDEFINED
public static final int PLATFORM_ENCODING_WINDOWS_UNDEFINED
Platform specific encoding.
PLATFORM_ENCODING_WINDOWS_UNICODE
public static final int PLATFORM_ENCODING_WINDOWS_UNICODE
Platform specific encoding.
PLATFORM_ISO
public static final int PLATFORM_ISO
A constant for the platform.
PLATFORM_MACINTOSH
public static final int PLATFORM_MACINTOSH
A constant for the platform.
PLATFORM_WINDOWS
public static final int PLATFORM_WINDOWS
A constant for the platform.
getLanguageId
public int getLanguageId()
getNameId
public int getNameId()
getPlatformEncodingId
public int getPlatformEncodingId()
- Returns the platformEncodingId.
getPlatformId
public int getPlatformId()
getString
public String getString()
getStringLength
public int getStringLength()
- Returns the stringLength.
getStringOffset
public int getStringOffset()
- Returns the stringOffset.
initData
public void initData(TrueTypeFont ttf,
TTFDataStream data)
throws IOException
This will read the required data from the stream.
ttf
- The font that is being read.data
- The stream to read the data from.
setLanguageId
public void setLanguageId(int languageIdValue)
languageIdValue
- The languageId to set.
setNameId
public void setNameId(int nameIdValue)
nameIdValue
- The nameId to set.
setPlatformEncodingId
public void setPlatformEncodingId(int platformEncodingIdValue)
platformEncodingIdValue
- The platformEncodingId to set.
setPlatformId
public void setPlatformId(int platformIdValue)
platformIdValue
- The platformId to set.
setString
public void setString(String stringValue)
stringValue
- The string to set.
setStringLength
public void setStringLength(int stringLengthValue)
stringLengthValue
- The stringLength to set.
setStringOffset
public void setStringOffset(int stringOffsetValue)
stringOffsetValue
- The stringOffset to set.
toString
public String toString()
Return a string representation of this class.