Jump to content
  • Advertisement
Sign in to follow this  

.TTF sample C++

This topic is 2219 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 render a text in DirectX 11 with a .dds file and some quads. The problems is that I want to load the .ttf file then convert it on the fly to a DDS texture (only if is not converted already) then load it in the game and render it as quads. I have some questions:

1. As I'm not a very experienced programmer the TTF specification doesnt help me so much and I wonder If there is any working C++ sample that loads a .ttf file (cant manage to find it on google). Not explicitly on DirectX, It can be in any kind of renderer, even GDI.
2. The TTF file stores information about the character size and position and Ill get the data in pixels like a bitmap ?


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!