Implemented measure_string_longest_line

Also improved string drawing performance slightly.

Notice code references to a text formatting feature I'm adding, called
'AndEscaping'. More on that later.