Spacing between letters, ID3DXFont
- From: "Justus Jonas" <Fake@xxxxxxxxxxx>
- Date: Sat, 2 Aug 2008 17:37:01 +0200
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.
.
- Follow-Ups:
- Re: Spacing between letters, ID3DXFont
- From: Richard [Microsoft Direct3D MVP]
- Re: Spacing between letters, ID3DXFont
- From: Justus Jonas
- Re: Spacing between letters, ID3DXFont
- Prev by Date: Re: Texture and Multithread questions
- Next by Date: Re: Spacing between letters, ID3DXFont
- Previous by thread: Re: Texture and Multithread questions
- Next by thread: Re: Spacing between letters, ID3DXFont
- Index(es):
Relevant Pages
|