CFont::CreateFont

Call this member function to initialize a CFont object with the specified characteristics. The font can subsequently be selected as the font for any device context.

Syntax

BOOL CreateFont( int nHeight, int nWidth, int nEscapement, int nOrientation, int nWeight, BYTE bItalic, BYTE bUnderline, BYTE cStrikeOut, BYTE nCharSet, BYTE nOutPrecision, BYTE nClipPrecision, BYTE nQuality, BYTE nPitchAndFamily, LPCTSTR lpszFacename );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CFont Overview, CFont Member Functions, Graphical Drawing Object Classes, CFont::CreateFontIndirect, CFont::CreatePointFont