Sign in to follow this  

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

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

This topic is 4375 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this