Sign in to follow this  

DX Compatible Fonts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this