# Problem with text displaying half way

**URL:** <https://forum.kirupa.com/t/problem-with-text-displaying-half-way/282671>\
**Category:** Uncategorized\
**Created:** [February 25, 2009, 1:28am UTC](https://forum.kirupa.com/t/problem-with-text-displaying-half-way/282671 "2009-02-25T01:28:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cac3a](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@cac3a](https://forum.kirupa.com/u/cac3a)\
**Post date:** [February 25, 2009, 1:28am UTC](https://forum.kirupa.com/t/problem-with-text-displaying-half-way/282671/1 "2009-02-25T01:28:35Z")

</div>

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

```auto

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.
