         s = getStyle("fontWeight");
         if (s != null)
         	fontDescription.fontWeight = s;
-        
-        if (checkForEmbed)
-        {
-            var embeddedFont:EmbeddedFont = getEmbeddedFont(
-                fontDescription.fontName, 
-                fontDescription.fontWeight == "bold", 
-                fontDescription.fontPosture == "italic");
-            
-            embeddedFontContext = 
-                embeddedFontRegistry.getAssociatedModuleFactory(
-                    embeddedFont, fontContext);
-
-            // if we found the font, then it is embedded. 
-            // Some fonts are not listed in info(), so are not in the above registry.
-            // Call isFontFaceEmbedded() which get the list of embedded fonts from the player.
-            if (embeddedFontContext != null) 
-            {
-                fontDescription.fontLookup = FontLookup.EMBEDDED_CFF;
-            }
-            else
-            {
-                var sm:ISystemManager = creatingSystemManager();
-                var textFormat:TextFormat = new TextFormat();
-                textFormat.font = fontDescription.fontName;
-                textFormat.bold = fontDescription.fontWeight == "bold";
-                textFormat.italic = fontDescription.fontPosture == "italic";
-                if (sm != null && sm.isFontFaceEmbedded(textFormat))
-                {
-                    fontDescription.fontLookup = FontLookup.EMBEDDED_CFF;
-                }
-            }
-        }
-        else
-        {
-            if (fontDescription.fontLookup == FontLookup.EMBEDDED_CFF)
-                embeddedFontContext = fontContext;
-            else
-                embeddedFontContext = null;
-        }
-
+        	
         s = getStyle("renderingMode");
         if (s != null)
         	fontDescription.renderingMode = s;
+        
+        // Fill our an ElementFormat based on the CSS styles.
         
         var elementFormat:ElementFormat = new ElementFormat();
         

    /**
	 *  @private
	 */
	private static var staticTextBlock:TextBlock = new TextBlock();

	/**
	 *  @private
	 */
	private static var staticTextElement:TextElement = new TextElement();

    /**
     *  @private
     */
    private static var staticSpaceJustifier:SpaceJustifier =
        new SpaceJustifier();

    /**
     *  @private
     */
    private static var staticEastAsianJustifier:EastAsianJustifier =
        new EastAsianJustifier();

    //----------------------------------
    //  embeddedFontRegistry

        }
    }
        
    /** 
     * Calculates the last line that fits in the given height and line count 
     * limit.
