Original Post
I'm using an ID3DXFont object to display any text to the screen but was wondering if there's a way to calculate the dimensions of the text displayed. For example, suppose I wanted to say 'Welcome ', one way could be to print Welcome to the screen and then the variable at the location that Welcome ended (does that make sense?). I'll eventually be using resizable text boxes so will have to know if a word at the end of a line fits into the text box or needs to be placed on a new line. Surely there is a quick a simple call to find out the dimensions of the printed text?