var fonts = new PrivateFontCollection(); fonts.AddFontFile(Server.MapPath("~/Alix2.ttf")); using(var bm = new Bitmap(300, 100)) { using(var font = new Font(fonts.Families.First(), 22)) { using(var g = Graphics.FromImage(bm)) { g.DrawString("Hello fonts", font, Brushes.White, 50, 20); } } bm.Save(Server.MapPath("img.jpg"), ImageFormat.Jpeg); }