Packagevegas.ioc.io
Classpublic class FontResource
InheritanceFontResource Inheritance ObjectResource Inheritance SimpleValueObject Inheritance Object

This resource contains all information about an external library (swf) to embed fonts in the application.



Public Properties
 PropertyDefined By
  autoRegister : Boolean
Indicates if the fonts in the external swf library (symbol class) are auto registered when the external file is loading.
FontResource
 Inheritedcache : Boolean
The cache flag of this resource (default is true).
ObjectResource
  checkPolicyFile : Boolean
Indicates if the assembly must check a policy file in the server of the external library to load.
FontResource
 Inheriteddata : *
The data object of this resource.
ObjectResource
  DEFAULT_PATH : String
[static] The root path of all stylesheet resources.
FontResource
 Inheritedenabled : Boolean
A enabled flag of this resource.
ObjectResource
  fonts : Array
The Array representation of all full class name of all embed fonts to load and register in the external library.
FontResource
 Inheritedid : *
Indicates the id of this ValueObject.
SimpleValueObject
 Inheritedowner : *
The owner reference of this resource.
ObjectResource
  path : String
The optional path of the external font library to load.
FontResource
 Inheritedresource : String
The resource value.
ObjectResource
 Inheritedtype : String
The type of the resource.
ObjectResource
 Inheritedverbose : Boolean
Indicates the verbose mode of the resource.
ObjectResource
Public Methods
 MethodDefined By
  
FontResource(init:Object = null)
Creates a new FontResource instance.
FontResource
  
[override] Creates a new CoreActionLoader object with the resource.
FontResource
 Inherited
equals(o:*):Boolean
Compares the specified object with this object for equality.
SimpleValueObject
 Inherited
formatToString(className:String = null, ... args):String
A utility function for implementing the toString() method.
SimpleValueObject
 Inherited
initialize(... args):void
The optional method invoked when the resource is loading.
ObjectResource
  
register(type:String = font):void
[static] Registers the resource in the ObjectResourceBuilder.
FontResource
 Inherited
toObject():Object
Returns the Object representation of this object.
SimpleValueObject
 Inherited
toSource(indent:int = 0):String
Returns the source code string representation of the object.
SimpleValueObject
 Inherited
toString():String
[override] Returns the String representation of this object.
ObjectResource
Property Detail
autoRegisterproperty
public var autoRegister:Boolean

Indicates if the fonts in the external swf library (symbol class) are auto registered when the external file is loading.

checkPolicyFileproperty 
public var checkPolicyFile:Boolean

Indicates if the assembly must check a policy file in the server of the external library to load.

DEFAULT_PATHproperty 
public static var DEFAULT_PATH:String

The root path of all stylesheet resources.

fontsproperty 
public var fonts:Array

The Array representation of all full class name of all embed fonts to load and register in the external library.

pathproperty 
public var path:String

The optional path of the external font library to load.

Constructor Detail
FontResource()Constructor
public function FontResource(init:Object = null)

Creates a new FontResource instance.

Parameters
init:Object (default = null) — A generic object containing properties with which to populate the newly instance. If this argument is null, it is ignored.
Method Detail
create()method
override public function create():CoreActionLoader

Creates a new CoreActionLoader object with the resource.

Returns
CoreActionLoader
register()method 
public static function register(type:String = font):void

Registers the resource in the ObjectResourceBuilder.

Parameters

type:String (default = font)