O'Reilly logo

Sams Teach Yourself Windows® Phone 7 Game Programming in 24 Hours by Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 3. Printing Text

This hour takes the next logical step in programming the WP7 with XNA 4.0. You have learned how to create a new Windows Phone project in Visual C# 2010. We will touch on that subject again in this hour while learning about fonts and text drawing code. There are actually quite a lot of interesting features available to us for working with text and fonts in an XNA program. There are several royalty-free fonts included with XNA, which can each be used to draw text in any font point size with special effects such as italic and bold. We will explore the runtime capabilities of the font system to render text in different colors (including alpha blending), color animation, and even scaling.

What You’ll Learn in This Hour:

Creating ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required