Is there a way to do something like this?
FontFamily fontFamily = new FontFamily("C:/Projects/MyProj/free3of9.ttf");
I've tried a variety of variations and haven't been able to get it to work.
UPDATE:
This works:
PrivateFontCollection collection = new PrivateFontCollection();
collection.AddFontFile(@"C:\Projects\MyProj\free3of9.ttf");
FontFamily fontFamily = new FontFamily("Free 3 of 9", collection);
Font font = new Font(fontFamily, height);
// Use the font with DrawString, etc.
"C:/Projects/MyProj/free3of9.ttf"
if so it's/
slaches need to change to` back slaches "@C:\Projects\MyProj\free3of9.ttf"
public void AddFontFile( string filename` methodvar fontFamily = AddFontFile(@"C:\Projects\MyProj\free3of9.ttf")
if you get that working then move and or create the access level variables where needed .. i.e private, Public, Protected, static etc...