AND TO EMBED ALL FONTS IN PC , DO THIS :
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css" id="styleMaker" runat="server"></style>
</head>
<body>
<form id="form1" runat="server">
<asp:DropDownList ID="ddlFfamily" runat="server"></asp:DropDownList>
</form>
</body>
</html>
AND IN CODE-BEHIND :
protected void Page_Load(object sender, EventArgs e)
{
var fonts = new InstalledFontCollection();
foreach (FontFamily font in fonts.Families)
{
ddlFfamily.Items.Add(font.Name);
}
foreach (ListItem item in ddlFfamily.Items)
{
styleMaker.InnerHtml += "." + Regex.Replace(item.Value.Trim(), @"\s+", "") + "{font-family:'" + item.Value + "';}";
item.Attributes.Add("class", Regex.Replace(item.Value.Trim(), @"\s+", ""));
}
}
PROOF :
