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

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

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

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