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.
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.
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.
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
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
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.