   D3DXFont.Draw trim spaces at right side?
  I'm implementing an input text box control. The text is drawn using D3DXFont. It works well till now. However, when I input spaces, it measures and draws the text as if the spaces are trimmed. So I have trouble to calculate the correct position to draw the cursor.I also tried to replace the spaces with non-breaking spaces, but they're still being trimmed. Now I have no idea how to implement a proper text box. Could someone please enlighten me?   