 import mx.core.EmbeddedFont;
 import mx.core.IEmbeddedFontRegistry;
 import mx.core.IFlexModuleFactory;
-import mx.core.IFontContextComponent;
 import mx.core.IIMESupport;
 import mx.core.IUIComponent;
 import mx.core.Singleton;

	 */
	private function getEmbeddedFontContext():IFlexModuleFactory
	{
		var moduleFactory:IFlexModuleFactory;
		
		var fontLookup:String = getStyle("fontLookup");
		if (fontLookup == "auto")
        {
			var font:String = getStyle("fontFamily");
			var bold:Boolean = getStyle("fontWeight") == "bold";
			var italic:Boolean = getStyle("fontStyle") == "italic";
			
            moduleFactory = embeddedFontRegistry.getAssociatedModuleFactory(
            	font, bold, italic, this, fontContext);

            // If we found the font, then it is embedded. 
            // But some fonts are not listed in info()
            // and are therefore not in the above registry.
            // So we call isFontFaceEmbedded() which gets the list
            // of embedded fonts from the player.
            if (!moduleFactory) 
            {
                var sm:ISystemManager;
                if (fontContext != null && fontContext is ISystemManager)
                	sm = ISystemManager(fontContext);
                else if (parent is IUIComponent)
                	sm = IUIComponent(parent).systemManager;


 *  @productversion Flex 4
 */
public class RichEditableText extends UIComponent
	implements IViewport, IIMESupport
{
    include "../core/Version.as";
        
