XNA 4.0 SpriteFont not displaying all Characters
Posted
by
Iain Brown
on Game Development
See other posts from Game Development
or by Iain Brown
Published on 2012-05-29T21:43:22Z
Indexed on
2012/09/07
3:49 UTC
Read the original article
Hit count: 312
xna-4.0
|spritebatch
Am looking for a little help and trying to use SpriteFont in my XNA 4.0 game but the problem is am displaying to string
"This is a test" but all that's displayed on the screen is "This is st" so the "a te" are missing from the screen.
The space is there for the characters but the letters are not.
The code am using is:
spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend);
spriteBatch.DrawString(font,"this is a test",new Vector2(692,372),Color.White);
spriteBatch.Draw(texture,new Rectangle(0,0,100,100),Color.White);
spriteBatch.End();
Any help with this would be great!
© Game Development or respective owner