http://forums.graalonline.com/forums...hp?t=134258865
It depends on how complex you want this to be. For my thread above(using state.png) it's fairly simple because you assume every character is the same width. However if you start rendering letters using a nonfixed-width font image then things get more complex as you need to start taking in to consideration kerning and spacing. This requires you to build an array of each character width, and to keep track of the last letter placement + width before placing the next character.