Packagech.capi.display.text
Classpublic class FontsParser
InheritanceFontsParser Inheritance Object

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 in 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 in the XMLNode.

Parameters

node:XMLNode — The node to parse.


Throws
ch.capi.errors:ParseError If — the XMLNode is invalid.