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 ); }
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); }
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; }