Hi all,
Just wanted to ask a quick question. I'm currently implementing the GUI for my game, and am working out how to deal with multiple lines of text. Given that the height of a String2D varies depending on the characters in the string, is there an easy way of determining the vertical spacing required to ensure that lines of text are evenly spaced for a given font and font size?
The way I'm thinking of doing it at the moment, is to use a test string containing the highest and lowest characters for a particular font to establish the largest height a String2D could have, but this seems a tad cumbersome. Is there an easier way?
Thanks,
Wibbs