# textHeight measurement

**URL:** <https://forum.kirupa.com/t/textheight-measurement/268861>\
**Category:** flash\
**Created:** [August 19, 2008, 7:58pm UTC](https://forum.kirupa.com/t/textheight-measurement/268861 "2008-08-19T19:58:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rrh](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@rrh](https://forum.kirupa.com/u/rrh)\
**Post date:** [August 19, 2008, 7:58pm UTC](https://forum.kirupa.com/t/textheight-measurement/268861/1 "2008-08-19T19:58:28Z")

</div>

What exactly is the .textHeight attribute measuring?

Let’s say I have a dynamic TextField named output. I want to add some text to it, and shift a box downwards to line up with the last line of text. Like so:

```auto
  output.appendText(inputText+"
");
        box.y=output.y+output.textHeight;

```

Can anyone explain to me why this code lines up the box perfectly for the first line added to output. And for the second line added to output. But for the third line of output, and every line after that point, the box is 2 pixels too high?
