开发者

How to include and use new fonts in win32 project.?

I have downloaded new ttf font. And I want to use that font in my win32 project. How to include and use new f开发者_C百科onts in my project.?


Add the font as resource, load the resource, then use AddFontMemResourceEx API:

This function allows an application to get a font that is embedded in a document or a webpage. A font that is added by AddFontMemResourceEx is always private to the process that made the call and is not enumerable.

You can find example code in this codeguru article.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜