 import flash.text.TextFormat;
 import flash.text.TextFormatAlign;
 import flash.text.TextLineMetrics;
-import flashx.textLayout.compose.ITextLineCreator;
+import flashx.textLayout.compose.ISWFContext;
 import mx.automation.IAutomationObject;
 import mx.core.FTETextField;
 import mx.managers.ISystemManager;

                    var sm:ISystemManager = creatingSystemManager();
                    embedFonts = sm != null && sm.isFontFaceEmbedded(textFormat);
                    if (embedFonts)
                        textLineCreator = ITextLineCreator(sm);
                    else
                        textLineCreator = null;
                }
            }
            else
            {
                embedFonts = getStyle("embedFonts");
                if (embedFonts)
                    textLineCreator = ITextLineCreator(moduleFactory);
                else
                    textLineCreator = null;
            }

            if (getStyle("fontAntiAliasType") != undefined)

                // Call isFontFaceEmbedded() which get the list of embedded fonts from the player.
                if (fontModuleFactory != null) 
                {
                    fontContext = ISWFContext(fontModuleFactory);
                    embedFonts = true;
                }
                else
