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

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

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

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

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

Метод Описание
GetSizeOf ( ) : int

Gets the size of.

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

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

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

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

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

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

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

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

Serializes 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