|
Hi, I've been trying to get this to work for the last 2 hours and I'm not getting what I'm doing wrong...
I've added Nuclex.TrueTypeImporter to my references in my content and I've added Nuclex.Fonts & Nuclex.Graphics in my main project.
I've put Arial-24-Vector.spritefont & Lindsey.spritefont
in the root of my content directory.
_spriteFont = Content.Load<SpriteFont>("Lindsey"); // works
_testFont = Content.Load<VectorFont>("Arial-24-Vector"); // crashes
I get this error on the _testFont line:
File contains Microsoft.Xna.Framework.Graphics.SpriteFont but trying to load as Nuclex.Fonts.VectorFont.
So I've searched around and by the looks of it it has something to do with the content importer & the content processor. For the content importer I have no new choices, so I leave it as it is,
Sprite Font Description - XNA Framework for content processor I select Vector Font - Nuclex Framework
And then I try to run it.
_testFont = Content.Load<VectorFont>("Arial-24-Vector"); // crashes again
I get the following error
Error loading "Arial-24-Vector".
It does work if I load a sprite, so it's not a pathing problem. I've checked the samples, they do work, but I think they also use a different version of the XNA framework because in my version the "Content" class starts with a capital letter.
I'm at a loss, so I ask here.
|