Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Creating Custom Fonts (With Outline) For WP7 and XNA

DZone's Guide to

Creating Custom Fonts (With Outline) For WP7 and XNA

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

I found this little gem that can create fonts with outline for XNA games: Bitmap Font Maker Utility Plus. It is actually a variation of the Microsoft utility Bitmap Font Maker.

After you choose a font you want to use, set the size for the outline. Note that the font preview does not reflect any changes here and that the resulting font will be white.

The exported file will look something like the following image (depending on your font preference):

In Visual Studio make sure that you set content processor to Sprite Font Texture. I have also changed the extension to xnb since I have had trouble if bmp was left as the extension (but that might be me :) ).

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

Topics:

Published at DZone with permission of Toni Petrina, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}