Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Newbie00

Text

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

Whenever I try to draw text the game crashes. Here is my code. What am I doing wrong?
	LOGFONT defaultFont = {
		18,							//height
		0,							//width
		0,							//lfEscapement
		0,							//lfOrientation
		FW_BOLD,					//lfWeight
		FALSE,						//lfItalic
		FALSE,						//lfUnderline
		FALSE,						//lfStrikeOut
		DEFAULT_CHARSET,			//lfCharSet
		OUT_DEFAULT_PRECIS,			//lfOutPrecision
		CLIP_DEFAULT_PRECIS,		//lfClipPrecision
		NONANTIALIASED_QUALITY,		//lfQuality
		DEFAULT_PITCH,				//lfPitchAndFamily
		"Courier New"				//lfFaceName[LF_FACESIZE]
	};
  
and then...

	RECT font_rect = {0, 500, 400, 600};
	m_pFFont->DrawText("Test", -1, &font_rect, DT_LEFT, 0xFFFFFFFF);
   
[edited by - Newbie00 on March 4, 2004 11:02:25 PM] [edited by - Newbie00 on March 4, 2004 11:02:53 PM]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!