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

공개 메소드들

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