• Advertisement
Sign in to follow this  

[MDX] 2D Font Problems (With screenshots :O)

This topic is 4447 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

Indeed I'm making quite a few posts on the DirectX thread recently; I'm trying to get as much of my game ported as possible before the holidays are over. :P I've now ran into a problem with the DirectX Fonts. When I use 'null' as my sprite, it works.... ... however, when I specify it with MySprite...
MySprite = new Sprite(MyDevice);
MyFont.DrawText(MySprite, "Well, hello fellows.", 0, 0, Color.White);
I get this... Why is that happening? [bawling]

Share this post


Link to post
Share on other sites
Advertisement
I found it.

MySprite.Begin(SpriteFlags.None);


Is what I was using start my sprite drawings, which worked fine for textures and such, but didn't like the fonts. I changed it to...

MySprite.Begin(SpriteFlags.AlphaBlend);


.. and the textures still worked fine, but the font worked fine too. [looksaround]

Thanks anyways.

Share this post


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

  • Advertisement