C# Class SwfDotNet.IO.Tags.DefineFontTag

DefineFontTag defines the glyphs that are drawn when text characters are rendered in a particular font.

A complete definition of a font is created using the DefineFontTag object for the glyphs along with an DefineFontInfoTag object which contains the name of the font, whether the font face is bold or italics and a table that maps character codes to the glyphs that is drawn to represent the character.

When defining a font only the glyphs used from a particular font are included. Unused glyphs can be omitted greatly reducing the amount of information that is encoded.

This tag was introduced in Flash 1.

Inheritance: BaseTag, DefineTag, IDefineFont
显示文件 Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
DefineFontTag ( ) : System

Creates a new DefineFontTag instance.

GetSizeOf ( ) : int

Gets the size of.

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
Init ( ) : void

Inits this instance.

Method Details

DefineFontTag() public method

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

GetSizeOf() public method

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

Init() protected method

Inits this instance.
protected Init ( ) : void
return void

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