             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)
         {

            var bold:Boolean = getStyle("fontWeight") == "bold";
            var italic:Boolean = getStyle("fontStyle") == "italic";
            
            var localLookup:ISystemManager = 
                fontContext && fontContext is ISystemManager ? 
                ISystemManager(fontContext) : systemManager;
            
            var registry:IEmbeddedFontRegistry =
                                UIComponent.embeddedFontRegistry;
            if (registry)
            {
                moduleFactory =
                    registry.getAssociatedModuleFactory(
                        font, bold, italic, 
                        this, fontContext, localLookup, true);
            }
        }
                
        return moduleFactory;
    }    
    
    //--------------------------------------------------------------------------
    //
    //  Event handlers

 *  @productversion Flex 4
 */

public class TextBase extends UIComponent
{

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