C# Class SwfDotNet.IO.Tags.DefineFontInfo2Tag

DefineFontInfo2Tag describes the mapping of codes for a given character set to the glyphs that are drawn to represent the character.

It extends the functionality provided by DefineFontInfo2Tag by adding a language attribute which is support to support line-breaking when displaying text in different spoken languages. Support for small fonts was added in Flash 7.

The class allows the font associated with a Flash file to be mapped to a font installed on the device where the Flash Player displaying the file is hosted. The use of a font from a device is not automatic but is determined by the HTML tag option deviceFont which is passed to the Flash Player when it is first started. If a device does not support a given font then the glyphs in the DefineFontTag class are used to render the characters.

An important distinction between the host device to specify the font and using the glyphs in an DefineFontTag object is that the device is not anti-aliased and the rendering is dependent on the host device. The glyphs in an DefineFontTag object are anti-aliased and are guaranteed to look identical on every device the text is displayed.

This tag was introduced in Flash 6. Support for small fonts was added in Flash 7.

Inheritance: BaseTag, DefineTag
Datei anzeigen Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
DefineFontInfo2Tag ( ) : System

Creates a new DefineFontInfo2Tag instance.

ReadData ( byte version, BufferedBinaryReader binaryReader ) : void

see base class

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

UpdateData ( byte version ) : void

see base class

Protected Methods

Method Description
GetSizeOf ( ) : int

Gets the size of.

Method Details

DefineFontInfo2Tag() public method

Creates a new DefineFontInfo2Tag instance.
public DefineFontInfo2Tag ( ) : System
return System

GetSizeOf() protected method

Gets the size of.
protected GetSizeOf ( ) : int
return int

ReadData() public method

see base class
public ReadData ( byte version, BufferedBinaryReader binaryReader ) : void
version byte
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader
return void

Serialize() public method

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
return void

UpdateData() public method

see base class
public UpdateData ( byte version ) : void
version byte
return void