     private static var staticEastAsianJustifier:EastAsianJustifier =
         new EastAsianJustifier();
 
+    //----------------------------------
+    //  embeddedFontRegistry
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the _embeddedFontRegistry property.
+     *  Note: This gets initialized on first access,
+     *  not when this class is initialized, in order to ensure
+     *  that the Singleton registry has already been initialized.
+     */
+    private static var _embeddedFontRegistry:IEmbeddedFontRegistry;
+
+    /**
+     *  @private
+     *  A reference to the embedded font registry.
+     *  Single registry in the system.
+     *  Used to look up the moduleFactory of a font.
+     */
+    private static function get embeddedFontRegistry():IEmbeddedFontRegistry
+    {
+        if (!_embeddedFontRegistry)
+        {
+            _embeddedFontRegistry = IEmbeddedFontRegistry(
+                Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
+        }
+
+        return _embeddedFontRegistry;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Class methods

		var textLine:TextLine;
        
		// For truncation, need to know if all lines have been composed.
		var createdAllLines:Boolean = false;
		
		// Generate TextLines, stopping when we run out of text
		// or reach the bottom of the requested bounds.

 *  @playerversion AIR 1.5
 *  @productversion Flex 4
 */
public class SimpleText extends TextGraphicElement implements IFontContextComponent
{
    include "../core/Version.as";

