代码改变世界

WP7备注(1)(XNA SpriteFont加载XML格式)

2011-04-26 10:08  血糯米Otomii  阅读(267)  评论(0编辑  收藏  举报
<?xml version="1.0" encoding="utf-8"?>
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
  <Asset Type="Graphics:FontDescription">
    <FontName>Segoe UI Mono</FontName>
    <Size>14</Size>
    <!--the amount of spacing in between characters.-->
    <Spacing>0</Spacing>
    <!--UseKerning controls the layout of the font.-->
    <UseKerning>true</UseKerning>
    <!--"Regular", "Bold", "Italic",and "Bold, Italic".-->
    <Style>Bold</Style>
    <!—The default range is from 32, (ASCII space), to 126, ('~'), covering the basic Latin character set.-->
    <CharacterRegions>
      <CharacterRegion>
        <Start>&#32;</Start>
        <End>&#126;</End>
      </CharacterRegion>
    </CharacterRegions>
  </Asset>
</XnaContent>
XNA的Sprite的基本格式,以embed的形式植入程序中,中文的unicode码的范围4e00-9fa5(19968-40869)