Talk:In-line Button Glyphs

From XNAWiki
Jump to: navigation, search

The WrapText method removes all spaces from the text. A simple solution would be to add the following code:

if (lineWidth != 0f)
{
   sb.Append(" ");
   lineWidth += spaceWidth;
}

after

foreach (string word in words)
{