Packagecom.adobe.portfolio.managers
Classpublic class FontManager
InheritanceFontManager Inheritance Object
Implements flash.events.IEventDispatcher

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The FontManager handles adding and registering fonts and keeping track of whether fonts are to be embedded when the Portfolio is saved.



Public Properties
 PropertyDefined By
  embedFontsOnSave : Boolean
Indicates whether if the host collection will embed the fonts it uses when the portfolio is saved.
FontManager
  instance : FontManager
[static] [read-only] A FontManager static instance that can be shared by Flex components.
FontManager
Public Methods
 MethodDefined By
  
Default constructor
FontManager
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void
FontManager
  
addFont(fontName:String, includeNormal:Boolean = true, includeBold:Boolean = true, includeItalic:Boolean = true, includeBoldItalic:Boolean = true):void
Adds a particular font to the local store so that it can be registered with subsequent calls to registerFontsWithHost.
FontManager
  
addFontResource(resourceURL:String):void
Adds a reference to the specified resourceURL so that its contents can be scanned for font references and added to the local store with subsequent calls to registerFontsWithHost.
FontManager
  
addFontsFromTLF(tlfXML:XML):void
Adds all fonts used within the given TLF (Text Layout Framework) XML block to the local store so that they can be registered with subsequent calls to registerFontsWithHost.
FontManager
  
dispatchEvent(event:Event):Boolean
FontManager
  
hasEventListener(type:String):Boolean
FontManager
  
Scans any available font resources for font references to add to the local store, and registers all fonts in the local store with the host for embedding.
FontManager
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
FontManager
  
removeFontResource(resourceURL:String):void
Removes a reference to resourceURL so that its contents will no longer be scanned for font references on subsequent calls to registerFontsWithHost.
FontManager
  
willTrigger(type:String):Boolean
FontManager
Protected Methods
 MethodDefined By
  
Listener to handle Navigator host events.
FontManager
Protected Constants
 ConstantDefined By
  collectionManager : CollectionManager
The navigator's CollectionManager instance.
FontManager
Property Detail
embedFontsOnSaveproperty
embedFontsOnSave:Boolean

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Indicates whether if the host collection will embed the fonts it uses when the portfolio is saved. This property can be used as the source for data binding.

This property can be used as the source for data binding.


Implementation
    public function get embedFontsOnSave():Boolean
    public function set embedFontsOnSave(value:Boolean):void
instanceproperty 
instance:FontManager  [read-only]

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

A FontManager static instance that can be shared by Flex components.


Implementation
    public static function get instance():FontManager
Constructor Detail
FontManager()Constructor
public function FontManager()

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Default constructor

Method Detail
addEventListener()method
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
weakRef:Boolean (default = false)

addFont()method 
public function addFont(fontName:String, includeNormal:Boolean = true, includeBold:Boolean = true, includeItalic:Boolean = true, includeBoldItalic:Boolean = true):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Adds a particular font to the local store so that it can be registered with subsequent calls to registerFontsWithHost.

Parameters

fontName:String
 
includeNormal:Boolean (default = true)
 
includeBold:Boolean (default = true)
 
includeItalic:Boolean (default = true)
 
includeBoldItalic:Boolean (default = true)

addFontResource()method 
public function addFontResource(resourceURL:String):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Adds a reference to the specified resourceURL so that its contents can be scanned for font references and added to the local store with subsequent calls to registerFontsWithHost.

Parameters

resourceURL:String

addFontsFromTLF()method 
public function addFontsFromTLF(tlfXML:XML):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Adds all fonts used within the given TLF (Text Layout Framework) XML block to the local store so that they can be registered with subsequent calls to registerFontsWithHost.

Parameters

tlfXML:XML

dispatchEvent()method 
public function dispatchEvent(event:Event):Boolean

Parameters

event:Event

Returns
Boolean
hasEventListener()method 
public function hasEventListener(type:String):Boolean

Parameters

type:String

Returns
Boolean
onNavHostEvent()method 
protected function onNavHostEvent(event:CollectionManagerEvent):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Listener to handle Navigator host events. The only such event of interest is a change in hosts

Parameters

event:CollectionManagerEvent

registerFontsWithHost()method 
public function registerFontsWithHost():void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Scans any available font resources for font references to add to the local store, and registers all fonts in the local store with the host for embedding. Font resources are created by the various addfont methods: addFont(), addFontsFromTLF(), and addFontResource().

removeEventListener()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)

removeFontResource()method 
public function removeFontResource(resourceURL:String):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Removes a reference to resourceURL so that its contents will no longer be scanned for font references on subsequent calls to registerFontsWithHost.

Parameters

resourceURL:String

willTrigger()method 
public function willTrigger(type:String):Boolean

Parameters

type:String

Returns
Boolean
Constant Detail
collectionManagerConstant
protected const collectionManager:CollectionManager

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The navigator's CollectionManager instance. All host interaction should go through this instance, rather than the INavigatorHost directly.