Sign in to follow this  
justin12343

Bitmap font with ID3DXFont?

Recommended Posts

justin12343    217
Is there a way to create a font from an image with ID3DXFont? I know it takes a system font and creates a texture with GDI some kind of way. Is it possible to supply it with a texture and the correct params so text can be displayed correctly?

Share this post


Link to post
Share on other sites
Nik02    4348
You'd be better off writing your own font class, if you want to do this. "Supply the correct params" is more complex than you might think.

That, and the texture + glyph rectangles are private to the d3dx font so there is no easy way to access them anyway (other than minor hacking).

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