Hi there.
I've for the past few days been experimenting with the use of non system
fonts via the PrivateFontCollection.AddFontFile() method.
If i do something like this:
private void button1_Click(object sender, System.EventArgs e)
{
System.Drawing.Text.PrivateFontCollection pfc = new
System.Drawing.Text.PrivateFontCollection();
pfc.AddFontFile("FREE3OF9.TTF");
FontFamily fam = new FontFamily("Free 3 of 9", pfc);
Font f = new Font(fam, 10F);
this.listBox1.Items.Add(f);
}
and clicks the button about 5 times or so, the font objects get messed up
and thrwos an exception in, among others, the name property.
Any suggestions?