Package | flashx.textLayout.elements |
Class | public class GlobalConfiguration |
Inheritance | GlobalConfiguration Object |
Property | Defined By | ||
---|---|---|---|
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
fontMapper : Function [static] Specifies the callback used for font mapping
The callback takes a flash.text.engine.FontDescription object and updates it as needed. | GlobalConfiguration | ||
prototype : Object [static]
A reference to the prototype object of a class or function object. | Object |
fontMapper | property |
fontMapper:Function
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Specifies the callback used for font mapping
The callback takes a flash.text.engine.FontDescription
object and updates it as needed.
After setting a new font mapping callback, or changing the behavior of the exisiting font mapping callback,
the client must explicitly call flashx.textLayout.elements.TextFlow.invalidateAllFormats
for each impacted text flow.
This ensures that whenever a leaf element in the text flow is recomposed next, the FontDescription applied to it is recalculated and the the callback is invoked.
public static function get fontMapper():Function
public function set fontMapper(value:Function):void
See also