public Font(int height, int width, string font) { _font = new SlimDX.Direct3D9.Font(Rendering.Device, height, width, FontWeight.Normal, 1, false, CharacterSet.Default, Precision.Default, FontQuality.Antialiased, PitchAndFamily.Default, font); Rendering.RegisterResource(this); }
public Font(string font, int size) { //_font = new SlimDX.Direct3D9.Font(Rendering.Device, height, width, FontWeight.Normal, 1, false, // CharacterSet.Default, Precision.Default, FontQuality.Antialiased, // PitchAndFamily.Default, font); _font = new SlimDX.Direct3D9.Font(Rendering.Device, new System.Drawing.Font(font, size)); Rendering.RegisterResource(this); }