         
         if (stageText.viewPort.width == 0 || stageText.viewPort.height == 0)
             updateViewPort(); // The StageText viewport is stale.
+        
+        // Make sure any pending style changes get saved before replacing
+        // the StageText with a bitmap
+        commitStyles();
         
         var bitmap:BitmapData = new BitmapData(stageText.viewPort.width, 
             stageText.viewPort.height, true, 0x00FFFFFF);

                // parent is out of sync.  See SDK-31538.
                var m:Matrix = MatrixUtil.getConcatenatedMatrix(parent, stage);
                var globalTopLeft:Point = m.transformPoint(localViewPort.topLeft);

                // Transform the bottom-right corner of the local rect
                // instead of setting width/height to account for any
                // transformations applied to ancestor objects.

    //  Overridden methods
    //
    //--------------------------------------------------------------------------
    
    /**
     *  @private
     */
    override public function move(x:Number, y:Number):void
    {
        super.move(x, y);
        
        if (!localViewPort)
            localViewPort = new Rectangle();
        
