我住包子山

this->blog.MoveTo("blog.baozishan.in")

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:

  1. Right click on your project and select properties.
  2. Select the Content Pipeline
  3. Select Add
  4. Browse to your FontPipeline\bin\debug folder (or wherever you have the fontpipeline compiled)
  5. Select Open on the FontPipeline.dll.

Then on the properties of the TrueTypeFont.xml file in your project

  1. Set the XNA Framework Content to True.
  2. Set the Content Importer to XML Content - XNA Framework.
  3. 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 阅读(236) 评论(0)  编辑 收藏 引用 所属分类: Practise


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理