I have a spritefont and 9patch object that I want to use for mouse-hover popups everywhere in the game. Since I will have many different pieces of text (some small, some long) I want to be able to resize the 9patch on-the-fly.
spritefonts have a size, and wrap by word/char base on the width. I have a maxwidth and height for game resolution.
I'm not sure about how to resize the spritefont based on string length. I assume I need to know the longest char width with is a "W"..but that might not be right, since I do use a couple of spacing data values.
anyone know what I'm doing wrong?