问题
I was wondering how i can embed a third party font into my app( and use it ) so i can distribute my app with the font of my choice for users who do not have the font installed on their systems. Is this possible, or do i have to distribute the font if i want the users to be able to use the font in question. Thanks.
回答1:
Stick the actual font file into a User-Defined Resource.
回答2:
Very few fonts will have a license that allows this. Even a free font should be checked.
You can use CreateScalableFontResource and AddFontResource to make a font file available to your application. The font must be available as a separate file for this to work.
来源:https://stackoverflow.com/questions/3233993/embedding-third-party-fonts-as-resource-for-win32-application