Package org.apache.fontbox.ttf
Class NameRecord
java.lang.Object
org.apache.fontbox.ttf.NameRecord
A name record in the name table.
- Version:
- $Revision: 1.1 $
- Author:
- Ben Litchfield (ben@benlitchfield.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
A name id.static final int
A name id.static final int
A name id.static final int
A name id.static final int
A name id.static final int
A name id.static final int
A name id.static final int
A name id.static final int
A constant for the platform.static final int
Platform specific encoding.static final int
Platform specific encoding.static final int
A constant for the platform.static final int
A constant for the platform.static final int
A constant for the platform. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
int
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
void
setStringLength
(int stringLengthValue) void
setStringOffset
(int stringOffsetValue) toString()
Return a string representation of this class.
-
Field Details
-
PLATFORM_APPLE_UNICODE
public static final int PLATFORM_APPLE_UNICODEA constant for the platform.- See Also:
-
PLATFORM_MACINTOSH
public static final int PLATFORM_MACINTOSHA constant for the platform.- See Also:
-
PLATFORM_ISO
public static final int PLATFORM_ISOA constant for the platform.- See Also:
-
PLATFORM_WINDOWS
public static final int PLATFORM_WINDOWSA constant for the platform.- See Also:
-
PLATFORM_ENCODING_WINDOWS_UNDEFINED
public static final int PLATFORM_ENCODING_WINDOWS_UNDEFINEDPlatform specific encoding.- See Also:
-
PLATFORM_ENCODING_WINDOWS_UNICODE
public static final int PLATFORM_ENCODING_WINDOWS_UNICODEPlatform specific encoding.- See Also:
-
NAME_COPYRIGHT
public static final int NAME_COPYRIGHTA name id.- See Also:
-
NAME_FONT_FAMILY_NAME
public static final int NAME_FONT_FAMILY_NAMEA name id.- See Also:
-
NAME_FONT_SUB_FAMILY_NAME
public static final int NAME_FONT_SUB_FAMILY_NAMEA name id.- See Also:
-
NAME_UNIQUE_FONT_ID
public static final int NAME_UNIQUE_FONT_IDA name id.- See Also:
-
NAME_FULL_FONT_NAME
public static final int NAME_FULL_FONT_NAMEA name id.- See Also:
-
NAME_VERSION
public static final int NAME_VERSIONA name id.- See Also:
-
NAME_POSTSCRIPT_NAME
public static final int NAME_POSTSCRIPT_NAMEA name id.- See Also:
-
NAME_TRADEMARK
public static final int NAME_TRADEMARKA name id.- See Also:
-
-
Constructor Details
-
NameRecord
public NameRecord()
-
-
Method Details
-
getStringLength
public int getStringLength()- Returns:
- Returns the stringLength.
-
setStringLength
public void setStringLength(int stringLengthValue) - Parameters:
stringLengthValue
- The stringLength to set.
-
getStringOffset
public int getStringOffset()- Returns:
- Returns the stringOffset.
-
setStringOffset
public void setStringOffset(int stringOffsetValue) - Parameters:
stringOffsetValue
- The stringOffset to set.
-
getLanguageId
public int getLanguageId()- Returns:
- Returns the languageId.
-
setLanguageId
public void setLanguageId(int languageIdValue) - Parameters:
languageIdValue
- The languageId to set.
-
getNameId
public int getNameId()- Returns:
- Returns the nameId.
-
setNameId
public void setNameId(int nameIdValue) - Parameters:
nameIdValue
- The nameId to set.
-
getPlatformEncodingId
public int getPlatformEncodingId()- Returns:
- Returns the platformEncodingId.
-
setPlatformEncodingId
public void setPlatformEncodingId(int platformEncodingIdValue) - Parameters:
platformEncodingIdValue
- The platformEncodingId to set.
-
getPlatformId
public int getPlatformId()- Returns:
- Returns the platformId.
-
setPlatformId
public void setPlatformId(int platformIdValue) - Parameters:
platformIdValue
- The platformId to set.
-
initData
This will read the required data from the stream.- 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.
-
toString
Return a string representation of this class. -
getString
- Returns:
- Returns the string.
-
setString
- Parameters:
stringValue
- The string to set.
-