How to include font to clickOnce installation
Is there any way 开发者_开发知识库to include font to a clickOnce installation of a winforms application in visual studio. The program that we are developing requires a font that is not installed in windows by default.
Can you create a setup & deployment project to install the font, and deploy it as a prerequisite to the ClickOnce application. You can turn it into a custom prerequisite by using the Bootstrapper Manifest Generator to create the prerequisite package, copy into the VS packages folder, and it will show up in Visual Studio as a prerequisite.
You can load the font into a res file and have it loaded without being installed to the computer.
See:
- MS: Packaging fonts with applications
- Bob Powell: Embed Fonts
For anyone who stumbles on this in the future: There is a similar topic with more up-to-date and more detailed answers regarding this issue- Embedding/deploying custom font in .NET app
精彩评论