官术网_书友最值得收藏!

SpriteFonts

Unlike a Windows Forms application, XNA cannot use the TrueType fonts that are installed on your computer. In order to use a font, it must first be converted into a SpriteFont, a bitmap-based representation of the font in a particular size that can be drawn with the SpriteBatch.DrawString() command.

Technically, any Windows font can be turned into a SpriteFont, but licensing restrictions on most fonts will prevent you from using them in your XNA games. Along with the other tools, the Windows Phone Developers Tools installed in Chapter 1, Introducing XNA Game Studio is a collection of fonts provided by Microsoft to address this problem and give XNA developers a range of usable fonts that can be included in XNA games. The following are the samples of each of the redistributable fonts included:

SpriteFonts
主站蜘蛛池模板: 闸北区| 叶城县| 巴东县| 纳雍县| 循化| 山西省| 石台县| 山阴县| 昌图县| 读书| 昭平县| 宁乡县| 合肥市| 和龙市| 泸水县| 贺兰县| 郁南县| 阳高县| 长春市| 潢川县| 中卫市| 会泽县| 黑龙江省| 昌黎县| 郧西县| 迁安市| 克拉玛依市| 美姑县| 阳新县| 连江县| 徐水县| 罗江县| 宿迁市| 澜沧| 昌平区| 仁化县| 堆龙德庆县| 永昌县| 临安市| 台州市| 同心县|