Text

Started by
-1 comments, last by Newbie00 20 years, 1 month ago
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]

This topic is closed to new replies.

Advertisement