# 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?

+
|
+


\documentclass{article}