Embedding Third Party Fonts as resource for Win32 Application

前提是你 提交于 2019-12-06 06:45:00

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!