Change font of a label with custom font
c#, visual-studio, winforms
Solution
Use the PrivateFontCollection to load the font (See the `AddFontFile` and `AddMemoryFont`). You then use the font normally for label control.
PrivateFontCollection pfc = new PrivateFontCollection();
pfc.AddFontFile("C:\\Path To\\YourFont.ttf");
label1.Font = new Font(pfc.Families[0], 16, FontStyle.Regular);
Problem
Is possible change the font of label in C# with a custom font. EX.: I need change the font to Bookman Old Style and in Visual Studio doesn't have this font. Is possible add? How?