C# Class SwfDotNet.IO.Tags.DefineFont2Tag

DefineFont2Tag defines the shapes and layout of the glyphs used in a font.

It extends the functionality provided by the FSDefineFont class by:

  • Allowing more than 65535 glyphs in a particular font.
  • Including the functionality provided by the DefineFontInfoTag class.
  • Specifying ascent, descent and leading layout information for the font.
  • Specifying advances for each glyph.
  • Specifying bounding rectangles for each glyph.
  • Specifying kerning pairs defining the distance between pairs of glyphs.

This tag was introduced in Flash 2. Support for spoken languages was added in Flash 6. Support for small point size fonts was added in Flash 7.

Inheritance: BaseTag, DefineTag, IDefineFont
Show file Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
DefineFont2Tag ( ) : System

Creates a new DefineFont2Tag instance.

GetSizeOf ( ) : int

Gets the size of.

ReadData ( byte version, BufferedBinaryReader binaryReader ) : void

see base class

Serialize ( XmlWriter writer ) : void

Serializes with the specified writer.

UpdateData ( byte version ) : void

see base class

Protected Methods

Method Description
Init ( ) : void

Inits this instance.

Private Methods

Method Description
GetNumGlyphs ( ) : int

Gets the num glyphs.

HasLayoutInfo ( ) : bool

Determines whether [has layout info].

HasWideCodes ( byte version ) : bool

Determines whether has wide codes.

HasWideOffsets ( ) : bool

Determines whether [has wide offsets].

Method Details

DefineFont2Tag() public method

Creates a new DefineFont2Tag instance.
public DefineFont2Tag ( ) : 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 with 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