I want to use a specific font in my winform app. This font will be auto installed in user personal computer from my application resource.
How can I do that?
I used some code which is from user personal computer. If I use this the font
must be remain previously in user personal computer but I don't want that.
System.Drawing.Text.PrivateFontCollection fontCollection = new System.Drawing.Text.PrivateFontCollection();
fontCollection.AddFontFile(@"C:\Windows\Fonts\SUTOM__.TTF");
FontFamily family = new FontFamily("SutonnyMJ", fontCollection);
Font font3of9 = new Font(family, 15);
label1.Font = font3of9;