public static Font CreateFromTexture(Texture texture, FontDescription description) { return(new Font(texture, description)); }
/// <summary> /// Create the font from a file containing a serialized description. /// </summary> /// <param name="filename">Filename</param> /// <returns>The font</returns> public static Font FromDescriptionFile(string filename) { return(new Font(FontDescription.FromDescriptionFile(filename))); }
public static Font Create(GraphicsDevice device, Image <Rgba32> image, FontDescription description) { var texture = Texture.FromImage(device, image); return(CreateFromTexture(texture, description)); }