Sign in to follow this  

Loading TTF fonts as resource

Recommended Posts

My code here applies to Direct3D, but the question regards the Win32 font loading routines. By default, CreateFont looks for fonts in the %windows%/font folder, but what if I want to load a font as a resource from within one of my datafiles? In the end I don't want the end user to be able to replace the texture and / or copy it on the fly. A long time before these forums were cleaned, I asked the same question in the NeHe forum and got my answer, but I'm not able to find that post anymore. So my final question within this bunch of jiddering text: How do I load (ttf) fonts like a resource?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this