Fixed how text is measured (text output source)

We were doing it incorrectly.