Jump to content
  • Advertisement
Sign in to follow this  
Jamoflaw

directx font or sprite font

This topic is 2972 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 significant performance hit using the d3dxfont interface (for simple 2d fonts) compared to a simple sprite sheet lookup engine? I currently have a sprite lookup font engine but am not happy with the output quality.

What is most common to use these days?

Share this post


Link to post
Share on other sites
Advertisement
Most of the games are using a font texture.

There's a square texture which contains all the letters, numbers, punctuation marks etc. When rendering, they get a part of that texture (holds a character) and render it by using sprites.

But I don't use it. I use ID3DXFont interface with sprite batching. Gives me a lot of performance and quality.

Share this post


Link to post
Share on other sites
Don't worry about performance until you find that what you have isn't performant enough.

ID3DXFont is pretty fast - It keeps several internal textures containing the characters drawn with GDI, so there might be a performance hit when you first draw a character, but after that it'll be just as fast as rendering your own bitmap font.

However, your own bitmap font would be more flexible, since you could "texture" the characters and so on.

Share this post


Link to post
Share on other sites
What programs does eveyone use to get the font texture set up? i have only found one for xna and it didnt provide width data which is required

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!