Embedding Third Party Fonts as resource for Win32 Application
I was wondering how i can embed a third party font int开发者_JS百科o 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.
Stick the actual font file into a User-Defined Resource.
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.
精彩评论