Hi,
DrawText() in DX9 does not work the same way as DrawText() in GDI does when used with the DT_WORDBREAK flag. Punctuation marks in DX9 are wrapped incorrectly:
This is a small text
. The full stop is
wrapped onto the
new line.
Parenthesis are also wrapped although there is no whitespace between the parenthesis and the preceding word:
This is another (bla bla
) text.
This behaviour can be seen in the Text3D sample of the SDK when the window is resized.
Does Microsoft know about this problem Is there a workaround for this
Thanks,
Roman

ID3DXFont and DT_WORDBREAK
Suresh Bansal
Ummm. I realize it's been a year, but do you mean to tell me that you know your "be all and end all" word layout engine can't handle simple things like comma and apostrophe and you're not going to fix it Urm, doesn't that strike you as unacceptable What's the point of providing the API if it gives the wrong answer in extremely common cases Word breaking between a word and the following comma is just plain wrong. So is breaking "I've" at the apostrophe. Any chance you'll reconsider this decision so someone could actually use DrawText
Rick Saada
Ze Miguel
-Kutta
Direct3D, Microsoft Corporation
EnginAVCI
Possibly, but you should send a bug report to directx@microsoft.com to make sure.
Other than doing the word wrap yourself, not that I know of.