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;
		}
		public static SpriteFontDesc LoadFromFile( Stream stream )
		{
			SpriteFontDesc ret = new SpriteFontDesc();
			ret.Load( stream );
			return ret;
		}