添加自定义字体
System.Drawing.Text.PrivateFontCollection privateFonts = new System.Drawing.Text.PrivateFontCollection(); privateFonts.AddFontFile("C:\\Documents and Settings\\QuartzMS.ttf"); System.Drawing.Font font = new Font(privateFonts.Families[0], 12); label1.Font = font;