# Measuring height of fixed-width text box

Suppose some text is put inside a fixed width box. The text will then continue in vertical direction. How can you measure the total height of that text?

Original text:

text text text text text


Text in a box constrained to width of text text

text text
text text
text


How long is this?

+
|
+

-
See also the recent question Why doesn't \settoheight of \parbox work?. –  Martin Scharrer Feb 24 '11 at 15:40

\documentclass{article}