• Advertisement
Sign in to follow this  

DX Compatible Fonts

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