fontpipeline
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的疑問就這么解決了
posted on 2007-08-26 20:27 Gohan 閱讀(240) 評論(0) 編輯 收藏 引用 所屬分類: Practise