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.
精彩评论