Package com.tom_roush.fontbox.ttf
Class NameRecord
- java.lang.Object
-
- com.tom_roush.fontbox.ttf.NameRecord
-
public class NameRecord extends Object
A name record in the name table.
-
-
Field Summary
Fields Modifier and Type Field Description static intENCODING_MACINTOSH_ROMANstatic intENCODING_UNICODE_1_0static intENCODING_UNICODE_1_1static intENCODING_UNICODE_2_0_BMPstatic intENCODING_UNICODE_2_0_FULLstatic intENCODING_WINDOWS_SYMBOLstatic intENCODING_WINDOWS_UNICODE_BMPstatic intENCODING_WINDOWS_UNICODE_UCS4static intLANGUGAE_MACINTOSH_ENGLISHstatic intLANGUGAE_UNICODEstatic intLANGUGAE_WINDOWS_EN_USstatic intNAME_COPYRIGHTstatic intNAME_FONT_FAMILY_NAMEstatic intNAME_FONT_SUB_FAMILY_NAMEstatic intNAME_FULL_FONT_NAMEstatic intNAME_POSTSCRIPT_NAMEstatic intNAME_TRADEMARKstatic intNAME_UNIQUE_FONT_IDstatic intNAME_VERSIONstatic intPLATFORM_ISOstatic intPLATFORM_MACINTOSHstatic intPLATFORM_UNICODEstatic intPLATFORM_WINDOWS
-
Constructor Summary
Constructors Constructor Description NameRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLanguageId()intgetNameId()intgetPlatformEncodingId()intgetPlatformId()StringgetString()intgetStringLength()intgetStringOffset()voidinitData(TrueTypeFont ttf, com.tom_roush.fontbox.ttf.TTFDataStream data)This will read the required data from the stream.voidsetLanguageId(int languageIdValue)voidsetNameId(int nameIdValue)voidsetPlatformEncodingId(int platformEncodingIdValue)voidsetPlatformId(int platformIdValue)voidsetString(String stringValue)voidsetStringLength(int stringLengthValue)voidsetStringOffset(int stringOffsetValue)StringtoString()Return a string representation of this class.
-
-
-
Field Detail
-
PLATFORM_UNICODE
public static final int PLATFORM_UNICODE
- See Also:
- Constant Field Values
-
PLATFORM_MACINTOSH
public static final int PLATFORM_MACINTOSH
- See Also:
- Constant Field Values
-
PLATFORM_ISO
public static final int PLATFORM_ISO
- See Also:
- Constant Field Values
-
PLATFORM_WINDOWS
public static final int PLATFORM_WINDOWS
- See Also:
- Constant Field Values
-
ENCODING_UNICODE_1_0
public static final int ENCODING_UNICODE_1_0
- See Also:
- Constant Field Values
-
ENCODING_UNICODE_1_1
public static final int ENCODING_UNICODE_1_1
- See Also:
- Constant Field Values
-
ENCODING_UNICODE_2_0_BMP
public static final int ENCODING_UNICODE_2_0_BMP
- See Also:
- Constant Field Values
-
ENCODING_UNICODE_2_0_FULL
public static final int ENCODING_UNICODE_2_0_FULL
- See Also:
- Constant Field Values
-
LANGUGAE_UNICODE
public static final int LANGUGAE_UNICODE
- See Also:
- Constant Field Values
-
ENCODING_WINDOWS_SYMBOL
public static final int ENCODING_WINDOWS_SYMBOL
- See Also:
- Constant Field Values
-
ENCODING_WINDOWS_UNICODE_BMP
public static final int ENCODING_WINDOWS_UNICODE_BMP
- See Also:
- Constant Field Values
-
ENCODING_WINDOWS_UNICODE_UCS4
public static final int ENCODING_WINDOWS_UNICODE_UCS4
- See Also:
- Constant Field Values
-
LANGUGAE_WINDOWS_EN_US
public static final int LANGUGAE_WINDOWS_EN_US
- See Also:
- Constant Field Values
-
ENCODING_MACINTOSH_ROMAN
public static final int ENCODING_MACINTOSH_ROMAN
- See Also:
- Constant Field Values
-
LANGUGAE_MACINTOSH_ENGLISH
public static final int LANGUGAE_MACINTOSH_ENGLISH
- See Also:
- Constant Field Values
-
NAME_COPYRIGHT
public static final int NAME_COPYRIGHT
- See Also:
- Constant Field Values
-
NAME_FONT_FAMILY_NAME
public static final int NAME_FONT_FAMILY_NAME
- See Also:
- Constant Field Values
-
NAME_FONT_SUB_FAMILY_NAME
public static final int NAME_FONT_SUB_FAMILY_NAME
- See Also:
- Constant Field Values
-
NAME_UNIQUE_FONT_ID
public static final int NAME_UNIQUE_FONT_ID
- See Also:
- Constant Field Values
-
NAME_FULL_FONT_NAME
public static final int NAME_FULL_FONT_NAME
- See Also:
- Constant Field Values
-
NAME_VERSION
public static final int NAME_VERSION
- See Also:
- Constant Field Values
-
NAME_POSTSCRIPT_NAME
public static final int NAME_POSTSCRIPT_NAME
- See Also:
- Constant Field Values
-
NAME_TRADEMARK
public static final int NAME_TRADEMARK
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public void initData(TrueTypeFont ttf, com.tom_roush.fontbox.ttf.TTFDataStream data) throws IOException
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
public String toString()
Return a string representation of this class.
-
getString
public String getString()
- Returns:
- Returns the string.
-
setString
public void setString(String stringValue)
- Parameters:
stringValue- The string to set.
-
-