コード例 #1
0
        public static SpriteFontDesc LoadFromFile(Stream stream)
        {
            SpriteFontDesc ret = new SpriteFontDesc();

            ret.Load(stream);
            return(ret);
        }
コード例 #2
0
		private SpriteFont( SpriteFontDesc desc, float size )
		{
			this.fontName = desc.FontName;
			this.style = desc.Style;
			this.size = size;
			this.maxImageSize = desc.MaxImageSize;
			this.characters = new List<char>( desc.Characters );
		}
コード例 #3
0
 private SpriteFont(SpriteFontDesc desc, float size)
 {
     this.fontName     = desc.FontName;
     this.style        = desc.Style;
     this.size         = size;
     this.maxImageSize = desc.MaxImageSize;
     this.characters   = new List <char>(desc.Characters);
 }
コード例 #4
0
        public static SpriteFont[] BuildFonts(SpriteFontDesc desc)
        {
            SpriteFont[] ret = new SpriteFont[desc.Sizes.Count];

            for (int i = 0; i < ret.Length; i++)
            {
                ret[i] = new SpriteFont(desc, desc.Sizes[i]);
                ret[i].Build();
            }

            return(ret);
        }
コード例 #5
0
		public static SpriteFont[] BuildFonts( SpriteFontDesc desc )
		{
			SpriteFont[] ret = new SpriteFont[desc.Sizes.Count];

			for( int i = 0; i < ret.Length; i++ )
			{
				ret[i] = new SpriteFont( desc, desc.Sizes[i] );
				ret[i].Build();
			}

			return ret;
		}
コード例 #6
0
		public static SpriteFontDesc LoadFromFile( Stream stream )
		{
			SpriteFontDesc ret = new SpriteFontDesc();
			ret.Load( stream );
			return ret;
		}