             // Check for embedded fonts
             embedFonts = isFontEmbedded(textFormat);
             
-            defaultTextFormat = textFormat;
-            setTextFormat(textFormat);
+            // It is an error to set defaultTextFormat or call setTextFormat if there is a 
+            // styleSheet.
+            if (!styleSheet)
+            {
+                defaultTextFormat = textFormat;
+                setTextFormat(textFormat);
+            }
             
             // If our text is empty we need to force the style changes in order for
             // textHeight to be valid. Setting the width is sufficient, and should

import mx.events.TouchInteractionReason;
import mx.geom.TransformOffsets;
import mx.managers.SystemManager;
import mx.resources.ResourceManager;
import mx.styles.CSSStyleDeclaration;
import mx.styles.ISimpleStyleClient;

import flash.geom.Vector3D;
import flash.text.Font;
import flash.text.FontType;
import flash.text.StyleSheet;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFieldType;
