Hi All,
I am trying to display all the fonts available in the system with its own style. But it is not working. I am following for color it is working fine.
Problem: This code is working fine in firefox but not in IE. Is there any option to make it work.
Code:
foreach (FontFamily font in fonts.Families)
{
ddlFontName.Items.Add(font.Name); // Working
}
for (int row = 0; row < ddlFontName.Items.Count; row++)
{
ddlFontName.Items[row].Attributes.Add("style", "font-family:" + ddlFontName.Items[row].Value); // Not Working
}