1. Install Using Setup Project
You can install font from your setup project to do this you have to
File System > Right Click under the File System on Target Machine > Add Special Folder Fonts Folder
Then Select Fonts Folder and Add > File...
2. Install Font Programmatically
To achive this you have to do some external calls unfortunately.
[DllImport("gdi32.dll", EntryPoint="AddFontResourceW", SetLastError=true)]
public static extern int AddFontResource([In][MarshalAs(UnmanagedType.LPWStr)]
string lpFileName);
Then call it from anywhere you want
AddFontResource(@"C:FontLocationMyFont.TTF");
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…