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

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
主站蜘蛛池模板: 唐河县| 高安市| 镇远县| 长子县| 黔东| 卓尼县| 永兴县| 金溪县| 大荔县| 杭州市| 宜川县| 平潭县| 岐山县| 寿宁县| 镇原县| 湖州市| 鱼台县| 汉源县| 文水县| 南城县| 滁州市| 营口市| 枣庄市| 保康县| 清远市| 吴川市| 蕲春县| 泰顺县| 额尔古纳市| 宿迁市| 赞皇县| 晋中市| 敖汉旗| 尼木县| 两当县| 大邑县| 永吉县| 辰溪县| 东海县| 广南县| 信阳市|