 import mx.styles.IStyleManager2;
 import mx.styles.StyleManager;
 import mx.styles.StyleProtoChain;
+import mx.utils.MatrixUtil;
 import mx.utils.NameUtil;
 import mx.utils.StringUtil;
 

        
        // If we use device fonts, then the unscaled width is 
        // textWidth * scaleX / scaleY
        if (!stage || embedFonts)
            return textWidth + TEXT_WIDTH_PADDING;

        var m:Matrix = transform.concatenatedMatrix;
        
        return (textWidth * m.a
                / m.d) + TEXT_WIDTH_PADDING;
    }

    //----------------------------------

        if (!stage || embedFonts)
            return textHeight + TEXT_HEIGHT_PADDING;

        const m:Matrix = MatrixUtil.getConcatenatedMatrix(this);
        const sx:Number = ((mirror) ? -1 : +1) * m.a;
        const sy:Number = m.d
        
        return (textHeight * sx / sy) + TEXT_HEIGHT_PADDING;
    }

    //----------------------------------
