How to Find installed font-family ?

Ranjeet_8
Posted by Ranjeet_8 under ASP.NET category on | Points: 40 | Views : 952
Find installed font-family

using System.Text;
using System.Drawing.Text;
using System.Drawing;

protected void Page_Load(object sender, EventArgs e)
{
InstalledFontCollection fontList = new InstalledFontCollection();
StringBuilder sb = new StringBuilder();

foreach (FontFamily Family in fontList.Families)
sb.Append(Family.Name + "<br/>");

Response.Write(sb.ToString());
}

Comments or Responses

Login to post response