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
Afficher le fichier Open project: bladecoding/SwfExport Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Init ( ) : void

Inits this instance.

Private Methods

Méthode 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 méthode

Creates a new DefineFont2Tag instance.
public DefineFont2Tag ( ) : System
Résultat System

GetSizeOf() public méthode

Gets the size of.
public GetSizeOf ( ) : int
Résultat int

Init() protected méthode

Inits this instance.
protected Init ( ) : void
Résultat void

ReadData() public méthode

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

Serialize() public méthode

Serializes with the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
Résultat void

UpdateData() public méthode

see base class
public UpdateData ( byte version ) : void
version byte
Résultat void