 
             // Remove 2px margins around the text
             var matrix:Matrix = new Matrix();
-//            matrix.translate(-2, -2);
+            matrix.translate(0, -2);
 
             if (isStroke)
             {

        }

}
}
            var textField:TextField     = new TextField();
            textField.autoSize          = TextFieldAutoSize.LEFT;
            textField.defaultTextFormat = textFormat;
            textField.antiAliasType     = AntiAliasType.ADVANCED;
            textField.text              = text.replace(/[\t\n\f\r]/g, " ");
            textField.setTextFormat(textFormat);
            return {width: textField.textWidth + 4, height: textField.textHeight + 4 };
