   Position of Pixel
  Hi all, I've written a program using DirectX, on runtime I can see some text on the "GUI", the text is compsed by random words.I can set the Char Size, but when:- I enlarge it I see the words placed one upon another;- I reduce it I see the words placed too many far away.I don't know what can I do to place the words well spaced out.I need a big help!!EDIT: These forums use the HTML 'img' tag for images...[Edited by - jollyjeffers on June 5, 2006 8:29:27 AM]
  You'll have to give us much more detail about this in order to get a good answer.Are you actually using the Direct3D/D3DX API's (e.g. ID3DXFont?) or is this some sort of custom rasterizer? If so, some details about it - is it fixed width or variable width?Are you rendering via geometry? e.g. a vertex buffer (if so, rendering in wireframe or as a solid colour can be a useful debugging aid).If you're writing an algorithm to manually place individual characters then its not really D3D-specific - you might want to take a step back and consider your fundamental algorithm. The Win32 API call GetTextExtentPoint32() is extremely useful [wink]Cheers,Jack   ;  Here's an example of the code:Main.cpptestvar->SetCharSize(30);// Set the sizeTest.cppTest::Test(int x, int y){this->counter1->SetPosition(x,y);this->counter2->SetPosition(x+12,y);....................}Instead of (x+12) I want to place the counter2 on x+(position after the counter1 considering the CharSize that could be variable).P.S.: in my program I use D3DX and vertex buffer!;  Some hints?   