Load SpriteFont in XNA

Posted by user22715 on Game Development See other posts from Game Development or by user22715
Published on 2012-11-10T11:54:10Z Indexed on 2012/11/14 11:20 UTC
Read the original article Hit count: 617

Filed under:
|
|
|

I'm planning on my game using multiple backgrounds so I'm trying to use spritefonts to draw the text. Every time I load my spritefont I get a error.

Line1 = content.Load<SpriteFont>("Courier New");
Line2 = content.Load<SpriteFont>("Courier New");

This is the error I get.

Error loading "Courier New". File not found.

Although this was the font listed on the official microsoft website http://msdn.microsoft.com/en-us/library/bb447673.aspx.

© Game Development or respective owner

Related posts about XNA

Related posts about c#