SoopahMan

The XNA Framework can't write text to the screen out-of-the-box (unless you forego all of its 2D and 3D capabilities, that is).

A little group called Nuclex has put together an excellent text-rendering utility that integrates extremely well with the XNA Framework:
http://www.nuclex.org/framework/fonts

1) Reference the Nuclex stuff (see the Tutorial)
2) Make an XML file and fill it with a few tags about the font you want
3) Reference that font
4) Use the font object to make DrawString() calls in the Draw event of your app.

Great for checking on FPS, input status, or other testing/monitoring... or just showing your player's in-game stats.


Re: XNA Framework Writing Text to the Screen

Jim Perry

What is it they say over at GameDev.net - Welcome to last month.




Re: XNA Framework Writing Text to the Screen

waruwaru

I hope GD comes up soon... getting tired of looking at imcomplete google caches... heh






Re: XNA Framework Writing Text to the Screen

Jim Perry

One less board for me to check.




Re: XNA Framework Writing Text to the Screen

SoopahMan

Ah, sorry - I just started using XNA recently and GameDev.net has been down since day 1 for me.




Re: XNA Framework Writing Text to the Screen

waruwaru

No worrys. Check out George's post in this thread if you want to try some other solution/packages.

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1142823&SiteID=1