public SpriteFontDoubleColor(GraphicsDevice gdevice,Font font,Color fillcolor,Color bordercolor) { _font = font; _device = gdevice; _fillcolor = fillcolor; _bordercolor = bordercolor; //if (_font.maxcharheight <= 16) { _tex.Add(new Texture2D(gdevice, 512, 512)); packer = new SimpleRectanglePacker(512, 512); } //else //{ // _tex.Add( new Texture2D(gdevice, 1024, 1024)); // packer = new SimpleRectanglePacker(1024, 1024); //} }
public SpriteFontSimple(GraphicsDevice gdevice, Font font) { _font = font; _device = gdevice; //if (_font.maxcharheight <= 16) { _tex.Add(new Texture2D(gdevice, 512, 512)); packer = new SimpleRectanglePacker(512, 512); } //else //{ // _tex.Add(new Texture2D(gdevice, 1024, 1024)); // packer = new SimpleRectanglePacker(1024, 1024); //} }