Fix word wrapping in the FontRuler

When using long test strings the FontRuler has the potential to word-wrap to the next line, causing both height and width measurements to be incorrect. This pull request fixes that.