< Back
Page 7 of 7
This chapter is from the book
Workshop
Quiz
- What version of Content.Load<>() should be used to load a font?
- What class contains the DrawString() method used to print text based on a font?
- How many royalty-free fonts does XNA 4.0 come with?
Answers
- Content.Load<SpriteFont>()
- SpriteBatch
- 28
Exercises
For further study, try adding several more fonts to the project created in this hour, and then experiment with the different options in the .spritefont files, such as name and size, and print each font in a different color. Also, try out the different overloads of DrawString() to find the one that you like the best.
< Back
Page 7 of 7