public static SpriteFontDesc LoadFromFile(Stream stream)
        {
            SpriteFontDesc ret = new SpriteFontDesc();

            ret.Load(stream);
            return(ret);
        }
		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 );
		}
Example #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);
 }
Example #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);
        }
		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;
		}