Sign in to follow this  
outlawhacker

Use font without installing? - ID3DXFont

Recommended Posts

Hey, I was wondering if there's any way to use TrueType fonts with ID3DXFont, without having installed them in Windows? If I have my own TrueType font and I would like people to play my game without needing to install the font - would I have to write my own font engine? Thanks

Share this post


Link to post
Share on other sites
You can use AddFontResource (GDI) to add it to the system font list and then use it as if it were installed. Call RemoveFontResource to remove it from the system list when your application is done.

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