Hi,
I can't figure out how to render text at a decent quality, with D3DX. I'm creating the font like this:
// Unmanaged C++
D3DXCreateFont(d3dDevice, pxSize, 0, (bold ? FW_BOLD : FW_NORMAL), 0, italics,
DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH|FF_DONTCARE,
fontface, &(pFont->d3dxfont));
Then I render it with:
m_pD3DXSprite->Begin(D3DXSPRITE_OBJECTSPACE|D3DXSPRITE_ALPHABLEND);
font.d3dxfont->DrawText(m_pD3DXSprite, text, -1, &rect, format, color);
m_pD3DXSprite->End();
The result looks pretty bad compared to drawing text in MS Paint:
Any ideas what I'm doing wrong? Why is the text coming out so knobbly and aliased even with ANTIALIASED_QUALITY set?
Thanks for any help.