Hi Melisa,
(using System.Drawing)
foreach (FontFamily family in FontFamily.Fami lies)
{
Console.WriteLi ne(family.Name) ;
Console.WriteLi ne("\t\tBold={0 }",
family.IsStyleA vailable(FontSt yle.Bold));
Console.WriteLi ne("\t\tItalic= {0}",
family.IsStyleA vailable(FontSt yle.Italic));
Console.WriteLi ne("\t\tUnderli ne={0}",
family.IsStyleA vailable(FontSt yle.Underline)) ;
}
I'm not sure, but I think the font sizes are hard-coded. For instance, I've
chosen Arial 8 in some applications (IIRC, VS.NET) from the dialog and it's
converted to 7.5 automatically.
--
Dave Sexton
"Melisa" <pr************ *@nagarro.comwr ote in message
news:11******** **************@ e3g2000cwe.goog legroups.com...
Hi,
I am trying to list all font families in a combo box control.
But all font families does not support all font styles .
How can i get the list of all font style and font size supported by a
specific font family
like in font dialog window control ???
Please help me and reply as soon as possible.
ThankYou