Jump to content
  • Advertisement


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


Fonts in DirectX 8

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

I want to draw text onto a Direct3DSurface, so then I can CopyRect to a Texture and render it... Is that possible? I''ve tried with DrawText, buy It renders directly into the D3DDevice. Sorry for my bad english. -DarkHack

Share this post

Link to post
Share on other sites
Have you looked into the CD3DFont class that comes with the common files framework? That allows you to blit 2d and 3d text. Quite handy, though, not as cool or fulfilling as writing your own I suppose.

The other way is to create a table of all the ascii characters you need in an art program, and then blit what you need to the surface, the problem with this is that CopyRects doesn't support alpha or color keying, which completely sucks. You could write a function that locks the surface and manually copys over the pixels, leaving out those that are alpha'ed out, or part of the colour key. But to me seems to be more hassle than it's worth.

[edited by - Redline on March 3, 2003 9:19:15 AM]

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.

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!