             hasScrollRect = false;
         }
     }
-
-    /**
-     *  @private
+    
+    /**
+     *  @private
+     *  Uses the component's CSS styles to determine the module factory
+     *  that should creates its TextLines.
      */
     mx_internal function getEmbeddedFontContext():IFlexModuleFactory
     {
-        var moduleFactory:IFlexModuleFactory;
+        var fontContext:IFlexModuleFactory;
+        
         var fontLookup:String = getStyle("fontLookup");
         if (fontLookup != FontLookup.DEVICE)
         {

    }
    
    //--------------------------------------------------------------------------
    //
    //  Properties: IFontContextComponent
    //
    //--------------------------------------------------------------------------
    
    //----------------------------------
    //  fontContext
    //----------------------------------
    
    /**
     *  @private
     */
    private var _fontContext:IFlexModuleFactory;
    
    /**
     *  @inheritDoc
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public function get fontContext():IFlexModuleFactory
    {
        return _fontContext;
    }
    
    /**
     *  @private
     */
    public function set fontContext(value:IFlexModuleFactory):void
    {
        _fontContext = value;
    }
    
    //--------------------------------------------------------------------------
    /**
     *  @private
     */

 *  @productversion Flex 4
 */

public class TextBase extends UIComponent
{

    include "../../core/Version.as";
