         }
     }
 
+    /**
+     *  @private
+     */
+    mx_internal function getEmbeddedFontContext():IFlexModuleFactory
+    {
+        var moduleFactory:IFlexModuleFactory;
+        var fontLookup:String = getStyle("fontLookup");
+        if (fontLookup != FontLookup.DEVICE)
+        {
+            var font:String = getStyle("fontFamily");
+            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

        }
    }
    
    /**
     *  @private
     */

 *  @productversion Flex 4
 */

public class TextBase extends UIComponent implements IFontContextComponent
{

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