Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Xiachunyi

Win 32 API: Adding a font

This topic is 5195 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello I don''t quite understand the "AddFontResource" and "CreateScalableFontResource". For the parameter for the AddFontResource function, does it mean the font''s file name or the name that it declares itself once in the fonts folder of Windows. I have a true type font so based on what I''ve read I will need to utilize the CreateScalableFontResource function to create a font resource file and then pass that file to the AddFontResource. Can anyone provide me with an example of how utilize these two functions? Thank you.

Share this post


Link to post
Share on other sites
Advertisement
Google Groups is a good place to find info on stuff like that and examples of using different win32 API functions. Try here:

http://groups.google.com/groups?num=50&hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&q=CreateScalableFontResource+OR+AddFontResource&btnG=Google+Search

and or course MSDN:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_9r77.asp


[edited by - vEEcEE on March 6, 2004 2:18:07 PM]

Share this post


Link to post
Share on other sites
Thank you vEEcEE for all your help, finally got it working. I didn''t know there was such a thing as Google Groups.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!