How can I fill a combo-box with a list of all the available fonts in the system?
+1
A:
Use Installed Font Collection class:
http://msdn.microsoft.com/en-us/library/system.drawing.text.installedfontcollection.aspx
STO
2010-08-06 17:19:23
+3
A:
You can use System.Drawing.FontFamily.Families
to get the available fonts.
List<string> fonts = new List<string>();
foreach (FontFamily font in System.Drawing.FontFamily.Families)
{
fonts.Add(font.Name);
}
// add the fonts to your ComboBox here
Zach Johnson
2010-08-06 17:20:05