I'm using the Direct3D Font object to draw a paragraph of text to the screen, and I'm finding that for some reason the lines don't break on punctuation like they should...
// _msg = the string to draw, _size is a vector2, x/y are integers
_font.DrawText(null, _msg, new Rectangle(_x, _y, (int)_size.X, (int)_size.Y), D3D.DrawTextFormat.Left | D3D.DrawTextFormat.WordBreak, _shadowColor);
It beats me why this is happening, but i get the following kind of line break:
Joey went to the store
, and then he realized that this line starts with a comma.
Standard line breaking suggests that either the comma should appear right after the word "store", or else the entire word "store" should appear on the next line, with the comma right after it. Either way, the comma should never be separated from the word it follows...
...so, um, how can I fix it
Game Technologies: DirectX, XNA, XACT, etc.17