haha, I just finished up my pong game and I ran into same problem (I hope the XNA team does work on making fonts better).
If you load up the Sample Font's project and then select the \Content\TrueTypeFont.xml file and look at it's properties, you'll see the Content Importer and Content Processor's set. In your project, you'll need to do the following:
- Right click on your project and select properties.
- Select the Content Pipeline
- Select Add
- Browse to your FontPipeline\bin\debug folder (or wherever you have the fontpipeline compiled)
- Select Open on the FontPipeline.dll.
Then on the properties of the TrueTypeFont.xml file in your project
- Set the XNA Framework Content to True.
- Set the Content Importer to XML Content - XNA Framework.
- Set the Content Processor to TrueTypeFontProcessor.
I did this by memory so just let me know if that doesn't do the trick and I'll dig through my project.
HTHs!
http://forums.xna.com/thread/4778.aspx关于XML格式的
TrueTypeFont的疑问就这么解决了