Jump to content
  • Advertisement
Sign in to follow this  

DX Compatible Fonts

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

im trying to add text into my game but im running into a problem. ive gone through the MSDN and ultimate game programming to find text examples. i have the all powerful "Hello World" printed on the screen but i want to change the font. right now its displaying in normal Arial. ive tried changing it to another TrueType font, mainly fonts that came with windows ie Impact or Times New Roman, and the text on the screen is not changing. is there something wrong with my creation code, or the rendering code?
					18, 0, 
					FW_BOLD, 1, 
                    DEFAULT_PITCH | FF_DONTCARE,
					"Impact", &font);

						"Hello World",
						DT_LEFT, 0xffffffff);

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!