C# Класс 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.

Наследование: BaseTag, DefineTag, IDefineFont
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Init ( ) : void

Inits this instance.

Приватные методы

Метод Описание
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].

Описание методов

DefineFont2Tag() публичный Метод

Creates a new DefineFont2Tag instance.
public DefineFont2Tag ( ) : System
Результат System

GetSizeOf() публичный Метод

Gets the size of.
public GetSizeOf ( ) : int
Результат int

Init() защищенный Метод

Inits this instance.
protected Init ( ) : void
Результат void

ReadData() публичный Метод

see base class
public ReadData ( byte version, BufferedBinaryReader binaryReader ) : void
version byte
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader
Результат void

Serialize() публичный Метод

Serializes with the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
Результат void

UpdateData() публичный Метод

see base class
public UpdateData ( byte version ) : void
version byte
Результат void