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

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

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