XNA: SpriteFont question

Posted by Zukki on Game Development See other posts from Game Development or by Zukki
Published on 2011-02-12T07:48:01Z Indexed on 2011/02/12 15:33 UTC
Read the original article Hit count: 260

Filed under:
|
|

Hi everyone, I need some help with the SpriteFont. I want a different font for my game, other than Kootenay. So, I edit the SpriteFont xml, i.e:

<FontName>Kootenay</FontName>

or

<FontName>Arial</FontName>

No problem with Windows fonts, or other XNA redistributable fonts pack. However, I want to use other fonts, that I downloaded and installed already, they are TTF or OTF, both supported by XNA. My problem is, I cant use them, I got this error:

The font family "all the fonts i tried" could not be found. Please ensure the requested font is installed, and is a TrueType or OpenType font. 

So, checking at the windows fonts folder, I check the properties and details of the fonts, I try all the names they have, and but never works. Maybe I need some kind of importing or installing in order to use them, I dont know, and I hope you guys can help me, thanks!

© Game Development or respective owner

Related posts about XNA

Related posts about c#