views:

57

answers:

3

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
+2  A: 

Please have a look at these examples 1, 2.

thelost
+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