Problem with text displaying half way

Can someone tell me why this code displays only half the letter A


var boxFld:TextField = new TextField();
            
            
function setTxt(_xPos:Number,_yPos:Number,_size:Number)
{
    var format:TextFormat = new TextFormat();
    format.font = "Arial";
    format.color = 0x000000;
    format.size = _size;
    format.bold = true;
    format.align = TextFormatAlign.CENTER;
    boxFld.defaultTextFormat = format;
    boxFld.text = "A";
    boxFld.selectable = false;
    trace(boxFld.width);
    boxFld.x = _xPos + (_size - boxFld.textWidth)/2;
    boxFld.y = _yPos + (_size - boxFld.textHeight)/2;
    boxFld.multiline = false;
    trace(boxFld.textHeight);
    trace(boxFld.textWidth);
    return boxFld;
}

addChild(setTxt(100,100,200));

Its really weird. When published only half the letter A is displayed.