forked from mirrors/0ad
83f4d8789b
The method's point is to calculate a text's height and width if it was written in a single line -- no matter how long the caption, even if it's wider than the window.