Jump to content
  • Advertisement
Sign in to follow this  
justin12343

Bitmap font with ID3DXFont?

This topic is 2233 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

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!