Spacing between letters, ID3DXFont

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

i have a problem regarding DirectX9 Fonts, what i wanted to do is display some text on the screen. So i created my font with this line of code:

V_RETURN( D3DXCreateFont( pd3dDevice, 30, 0, 55, 0, FALSE, DEFAULT_CHARSET,
OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE,
TEXT("Helvetica 65 Medium"), &g_myfont9 ));

and a second font to test stuff was

V_RETURN( D3DXCreateFont( pd3dDevice, 30, 0, 200, 0, FALSE, DEFAULT_CHARSET,
OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE,
TEXT("Arial"), &g_myfont9_big ));

this one. Now when i render some text with the first font (g_myfont9), i have no space between the letters, its all clamped up, the second (which is Arial...) works fine. When i use the Helvetica font in Word for example, it works fine.

Is there a way to manually get some space between the characters, or do i have to do it manually (by doing " " in between for example).

Thanks in advance.

.



Relevant Pages

  • Re: Spacing between letters, ID3DXFont
    ... So i created my font with this line of code: ... and a second font to test stuff was ... I just installed the new SDK, the text is still totally messed up, it's neither the text i gave to display nor is there any spacing between the letters. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Spacing between letters, ID3DXFont
    ... i have a problem regarding DirectX9 Fonts, what i wanted to do is display some text on the screen. ... So i created my font with this line of code: ... and a second font to test stuff was ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Spacing between letters, ID3DXFont
    ... [Please do not mail me a copy of your followup] ... So i created my font with this line of code: ... and a second font to test stuff was ... Legalize Adulthood! ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: file .dat into a window
    ... But I think you will find that it can select and display a file ... /* Added Font on May 29, 2003 to allow the font that is used to ... /* Setup Menu Bar and Items ... JMenuItem PreferencesMenuItem = new JMenuItem; ...
    (comp.lang.java.programmer)
  • Re: X-windows: MAC server on VMS client
    ... Is it correct to state that on the mac, X fonts are synthetised from the ... What you need to do for VMS is to enable the TCP/IP font server, which is not enabled by default. ... it may be that the X11 Server needs to know the physical geometry of the primary display. ...
    (comp.os.vms)