Tuesday, November 13, 2007

Question: What are all the possible font names that you can use for a SpriteFont?

Answer: Microsoft has allowed almost all the font families to be used for a SpriteFont. If you are having problems though, take not that there are some standards that need to be used in order to have XNA recognize the font family name.

  1. You need to allow spaces which may seem odd but is needed (i.e. the font family Times New Roman would still be entered in as “Times New Roman” and not “TimesNewRoman”).

  2. Also, obviously you need to spell the name correctly. No little mistakes as every letter matters. Also, there is no abbreviating.

  3. The Algerian font family is not accepted.

No comments: