Packagech.capi.display.text
Classpublic class FontsParser

Parser of embed fonts. The principle is that the swf containing the fonts are loaded within a Loader object and then, the EmbedFontParser will register the Font from an XMLNode.

See also

FontsManager


Public Properties
 PropertyDefined by
  defaultAlign : String
Defines the default alignement if the attribute is not specified.
FontsParser
  defaultColor : uint
Defines the default color if attribute not specified.
FontsParser
  defaultSize : uint
Defines the default size if attribute not specified.
FontsParser
Public Methods
 MethodDefined by
  
Creates a new FontsParser object.
FontsParser
  
parse(node:XMLNode):void
Parse the Font contained into the XMLNode.
FontsParser
Protected Methods
 MethodDefined by
  
initializeFont(font:AbstractFont, node:XMLNode):void
Initialize the AbstractFont.
FontsParser
Property detail
defaultAlignproperty
defaultAlign:String  [read-write]

Defines the default alignement if the attribute is not specified.

Implementation
    public function get defaultAlign():String
    public function set defaultAlign(value:String):void
defaultColorproperty 
defaultColor:uint  [read-write]

Defines the default color if attribute not specified.

Implementation
    public function get defaultColor():uint
    public function set defaultColor(value:uint):void
defaultSizeproperty 
defaultSize:uint  [read-write]

Defines the default size if attribute not specified.

Implementation
    public function get defaultSize():uint
    public function set defaultSize(value:uint):void
Constructor detail
FontsParser()constructor
public function FontsParser()

Creates a new FontsParser object.

Method detail
initializeFont()method
protected function initializeFont(font:AbstractFont, node:XMLNode):void

Initialize the AbstractFont.

Parameters
font:AbstractFont — The AbstractFont to initialize.
 
node:XMLNode — The XMLNode.
parse()method 
public function parse(node:XMLNode):void

Parse the Font contained into the XMLNode.

Parameters
node:XMLNode — The node to parse.

Throws
ParseError — If the XMLNode is invalid.