     {
         super();
     }
-    
      
-   //--------------------------------------------------------------------------
+    //--------------------------------------------------------------------------
     //
     //  Variables
     //
     //--------------------------------------------------------------------------
     
-    /**
-     * @private
-     * 
-     * Cache last value of embedded font.
-     */
-    private var cachedEmbeddedFont:EmbeddedFont = null;
-
-    /**
-     *  @private
-     * Holds the last recorded value of the module factory used to create the font.
-     */
-    private var embeddedFontContext:IFlexModuleFactory = null;
-
-    /**
-     *  @private
-     *  True if we need to compute the fontLookup
-     */
-    private var autoFontLookup:Boolean = false;
-
-    /**
-     *  @private
-     */
-    private var textFlow:TextFlow;
-
     /**
      *  @private
      *  This object is determined by the CSS styles of the RichText
      *  and is updated by createTextFlow() when the hostFormatsInvalid flag
      *  is true.
      */
-    private var hostTextLayoutFormat:TextLayoutFormat = new TextLayoutFormat();
+    private var hostFormat:ITextLayoutFormat;
 
     /**
      *  @private

        contentChanged = false;
        textChanged = false;

        if (hostTextLayoutFormatInvalid)
        {
            for (var p:String in TextLayoutFormat.tlf_internal::description)
            {
                setHostTextLayoutFormat(p);
            }
            hostTextLayoutFormatInvalid = false;
        }

        checkEmbeddedFontContext();

        if (textFlow)
        {
            textFlow.hostFormat = new TextLayoutFormat(hostTextLayoutFormat);
            
            // There should always be a composer but be safe.
            if (textFlow.flowComposer)
                textFlow.flowComposer.textLineCreator = _textLineCreator;
        }

        return textFlow;


    /**
     *  @private
     *  This will throw on import error.
     */
    private function importToFlow(source:Object, format:String):TextFlow
