This project is read-only.

Trying to implement Nuclex fonts

Dec 13, 2012 at 3:11 PM
Edited Dec 13, 2012 at 3:11 PM


I am trying to implement your font demo into my game, here is my code:


            this.arial24sprite = content.Load("Content/Arial-24-Sprite");
            this.arial24vector = content.Load("Content/Arial-24-Vector");


and i have this error:

Error loading "Content\Arial-24-Vector". File contains Microsoft.Xna.Framework.Graphics.SpriteFont but trying to load as Nuclex.Fonts.VectorFont.

I have copy/paste your files into my Content directory.

Something must be missing but i have checked the references of my content and i have the nuclex Font importer, i have the files in my COntent directory, well i don't know what could be the problem.

Thx for your time, best regards,


Dec 14, 2012 at 8:05 AM

You forgot to select the right content processor for vector font.

If you select the "Arial-24-vector.spritefont" file on your content project and check the "Properties" window (F4), one of the settings will allow you to pick either the "SpriteFont Description - XNA" or "Vector Font - Nuclex" content processor. You've got to pick the latter one, of course ;-)

Dec 14, 2012 at 10:20 AM

Thx a lot !