I have been trying (without success) to use and embedded font in my VB project. I have done it before but now I can't remember how to do it. I have been searching and searching on here and other websites, but stuff I have tried isn't working.
This is the only way I can do it at the moment. It works but I want to embed the font.
Dim privateFonts As New System.Drawing.Text.PrivateFontCollection()
privateFonts.AddFontFile("D:\somefont.ttf")
Dim font As New System.Drawing.Font(privateFonts.Families(0), 12)
Label1.Font = font
I have embedded the font no problem.
What code do I need to pull the font from the resource file and use it, on a label or panel, for example.
I know this has been asked so many times before, but nothing I try is working.
Thanks (with some embarrassment) in advance. Neil.