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
파일 보기 프로젝트 열기: bladecoding/SwfExport 1 사용 예제들

공개 메소드들

메소드 설명
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