ok, I tried that and it still doesn't work.
This is what I have so far:
1) At the top of my files I put using FontRenderer, and I added the font.cs and fontReader.cs to my project by going to add existing files.
2)I added the XML file by also going to add existing and I put it in a folder called content. I changed the properties like you said.
3) I added FontPipeline to the content pipeline like you said.
4) Now for the actual code:
I have the following outside of any methods but inside the game class:
SpriteBatch textBatch;
Font type;
The inside the load content method I have:
type = content.Load<Font>("Content\\TrueTypeFont");
textBatch = new SpriteBatch(graphics.GraphicsDevice);
And inside the draw method I have:
textBatch.Begin();
type.Draw("Hello, World!", new Vector2(64, 12), 2, Color.Red, textBatch);
textBatch.End();
The project compiles but it hangs when I run it. So I set a break point at the
type = content.Load<Font>("Content\\TrueTypeFont");
line and then the debugger give me the following error:
Error loading "Content\TrueTypeFont". Cannot find ContentTypeReader FontRenderer.FontReader, FontRenderer, Version=1.0.0.0, Culture=neutral.
I'm pretty sure something is wrong with the way I added the files to my project but i'm not sure what.
Thanks for the help.