I have created one Visual studio Winform and in the resource, I added IDAutomation font.
on my other PCs the font is not installed but I have done embed code in my program where I have given the font name. after successfully run the project on my machine I tried on others but that font is not supporting and giving error Path and file not found. how can I avoid the path to get this program exe running on all the machines also how can I avoiding installing the font on all the PCs. Below is my code.
Dim privateFonts As New System.Drawing.Text.PrivateFontCollection()
Dim pfc As New PrivateFontCollection()
My.Computer.FileSystem.WriteAllBytes(Application.StartupPath + "\IDAutomationHbC128M.otf", My.Resources.IDAutomationHbC128M, True)
pfc.AddFontFile(Application.StartupPath + "\IDAutomationHbC128M.otf")
The other issue is whenever I running this exe all the time it asks to click on run.
how can I avoid this problem also?
What I have tried:
Whatever was possible I tried.