Using VS2010, aspnet4, C#
How to use a font that is in a folder in my web application. changing the font "Arial" with "IDAutomationHC39M", which is the web application. ..font/IDAutomationHC39M
protected void Page_Load(object sender, EventArgs e)
{
string _strTexto = "TESTE 123";
Bitmap _bmpOut = new Bitmap(200, 50);
Graphics _graphs = Graphics.FromImage(_bmpOut);
_graphs.DrawString(_strTexto, new Font("Arial", 14), new SolidBrush(Color.Black), 0, 0);
MemoryStream ms = new MemoryStream();
_bmpOut.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
byte[] bmpBytes = ms.GetBuffer();
_bmpOut.Dispose();
ms.Close();
Response.BinaryWrite(bmpBytes);
Response.End();
}
code, convert font into an image, but I need to use a font that is in the ...
Go to the complete details ...