• Advertisement
Sign in to follow this  

ID3DXFont rendering screwy

This topic is 3974 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm getting all sorts of weird graphical artifacting with the ID3DXFont interface. It's supposed to look like this: http://i12.tinypic.com/3zq8hhw.jpg I get weird flashes like this: http://i13.tinypic.com/29q16qw.jpg It won't happen for a few builds... and then it goes all haywire and won't go away until I reboot. Unless I disable rendering of text, then the problem goes away. Relevant code:
// init
D3DXCreateFont( parent->GetDevice(), 16, 0, 400, 0, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS,

// usage
string msg = "whatever";
g_font->DrawText(NULL, msg.c_str(), -1, &rct, DT_WORDBREAK | DT_NOCLIP | DT_RIGHT, 0xFF000000);
Any ideas?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement