     //  embeddedFontRegistry
     //----------------------------------
 
+	private static var noEmbeddedFonts:Boolean;
+
     /**
      *  @private
      *  Storage for the embeddedFontRegistry property.

        }
        
        return lineMetrics;
    }

    /**
     * @private
     * 
     * Get the embedded font for a set of font attributes.
     */ 
    private function getEmbeddedFont(fontName:String, bold:Boolean, italic:Boolean):EmbeddedFont
    {
        // Check if we can reuse a cached value.
        if (cachedEmbeddedFont)
        {
            if (cachedEmbeddedFont.fontName == fontName &&
                cachedEmbeddedFont.fontStyle == EmbeddedFontRegistry.getFontStyle(bold, italic))
            {
                return cachedEmbeddedFont;
            }   
        }
        
        cachedEmbeddedFont = new EmbeddedFont(fontName, bold, italic);      
        
        return cachedEmbeddedFont;
    }

    /**

        // to be used for text measurement. The text field factory keeps
        // the text fields to one per moduleFactory.
        var embeddedFont:Boolean = false;
        var fontModuleFactory:IFlexModuleFactory = (noEmbeddedFonts || !embeddedFontRegistry) ? 
			null : 
            embeddedFontRegistry.getAssociatedModuleFactory(
                font, bold, italic, this, moduleFactory);

        embeddedFont = (fontModuleFactory != null);
        if (fontModuleFactory == null)
