|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.font.DefineFont4
public final class DefineFont4
DefineFont4 is used to pass OpenType font data directly to the text rendering engine added in Flash Player 10.
| Constructor Summary | |
|---|---|
DefineFont4(DefineFont4 object)
Creates and initialises a DefineFont4 object using the values copied from another DefineFont3 object. |
|
DefineFont4(int uid,
String fontName,
boolean isItalic,
boolean isBold,
byte[] font)
Creates a new DefineFont4 with the specified identifier, font name and style and OpenType font data. |
|
DefineFont4(SWFDecoder coder)
Creates and initialises a DefineFont4 object using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
DefineFont4 |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
byte[] |
getData()
Get the OpenType font definition data. |
int |
getIdentifier()
Get the unique identifier assigned to this object. |
String |
getName()
Returns the name of the font family. |
boolean |
isBold()
Is the font bold. |
boolean |
isItalic()
Is the font italicised. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setBold(boolean aBool)
Set the font is bold. |
void |
setData(byte[] bytes)
Set the OpenType font definition data. |
void |
setIdentifier(int uid)
Sets the unique identifier for an object within a given Movie. |
void |
setItalic(boolean aBool)
Set the font is italicised. |
void |
setName(String aString)
Set the name of the font. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefineFont4(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.
public DefineFont4(int uid,
String fontName,
boolean isItalic,
boolean isBold,
byte[] font)
uid - the unique identifier for the font.fontName - the name of the font.isItalic - does the font use italicsisBold - is the font bold.font - the OpenType font data.public DefineFont4(DefineFont4 object)
object - a DefineFont4 object from which the values will be
copied.| Method Detail |
|---|
public int getIdentifier()
getIdentifier in interface DefineTagpublic void setIdentifier(int uid)
setIdentifier in interface DefineTaguid - a unique identifier for the object. Must be in the range
1..65535.public boolean isItalic()
public boolean isBold()
public String getName()
public void setItalic(boolean aBool)
aBool - a boolean flag indicating whether the font will be rendered in
italicspublic void setBold(boolean aBool)
aBool - a boolean flag indicating whether the font will be rendered in
bold face.public void setName(String aString)
aString - the name assigned to the font, identifying the font family.
Must not be null.public byte[] getData()
public void setData(byte[] bytes)
bytes - the binary data containing the definition of the font.public DefineFont4 copy()
copy in interface Copyable<MovieTag>public String toString()
toString in class Objectpublic int prepareToEncode(Context context)
prepareToEncode in interface SWFEncodeablecontext - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder,
Context context)
throws IOException
encode in interface SWFEncodeablecoder - an SWFEncoder object.context - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException - if an error occurs while encoding the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||