public class NameRecord extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ENCODING_MACINTOSH_ROMAN |
static int |
ENCODING_UNICODE_1_0 |
static int |
ENCODING_UNICODE_1_1 |
static int |
ENCODING_UNICODE_2_0_BMP |
static int |
ENCODING_UNICODE_2_0_FULL |
static int |
ENCODING_WINDOWS_SYMBOL |
static int |
ENCODING_WINDOWS_UNICODE_BMP |
static int |
ENCODING_WINDOWS_UNICODE_UCS4 |
static int |
LANGUGAE_MACINTOSH_ENGLISH |
static int |
LANGUGAE_UNICODE |
static int |
LANGUGAE_WINDOWS_EN_US |
static int |
NAME_COPYRIGHT |
static int |
NAME_FONT_FAMILY_NAME |
static int |
NAME_FONT_SUB_FAMILY_NAME |
static int |
NAME_FULL_FONT_NAME |
static int |
NAME_POSTSCRIPT_NAME |
static int |
NAME_TRADEMARK |
static int |
NAME_UNIQUE_FONT_ID |
static int |
NAME_VERSION |
static int |
PLATFORM_ISO |
static int |
PLATFORM_MACINTOSH |
static int |
PLATFORM_UNICODE |
static int |
PLATFORM_WINDOWS |
Constructor and Description |
---|
NameRecord() |
Modifier and Type | Method and Description |
---|---|
int |
getLanguageId() |
int |
getNameId() |
int |
getPlatformEncodingId() |
int |
getPlatformId() |
String |
getString() |
int |
getStringLength() |
int |
getStringOffset() |
void |
initData(TrueTypeFont ttf,
org.apache.fontbox.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.
|
public static final int PLATFORM_UNICODE
public static final int PLATFORM_MACINTOSH
public static final int PLATFORM_ISO
public static final int PLATFORM_WINDOWS
public static final int ENCODING_UNICODE_1_0
public static final int ENCODING_UNICODE_1_1
public static final int ENCODING_UNICODE_2_0_BMP
public static final int ENCODING_UNICODE_2_0_FULL
public static final int LANGUGAE_UNICODE
public static final int ENCODING_WINDOWS_SYMBOL
public static final int ENCODING_WINDOWS_UNICODE_BMP
public static final int ENCODING_WINDOWS_UNICODE_UCS4
public static final int LANGUGAE_WINDOWS_EN_US
public static final int ENCODING_MACINTOSH_ROMAN
public static final int LANGUGAE_MACINTOSH_ENGLISH
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, org.apache.fontbox.ttf.TTFDataStream data) throws IOException
ttf
- The font that is being read.data
- The stream to read the data from.IOException
- If there is an error reading the data.public String toString()
public String getString()
public void setString(String stringValue)
stringValue
- The string to set.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.