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.
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 );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CFont Overview, CFont Member Functions, Graphical Drawing Object Classes, CFont::CreateFontIndirect, CFont::CreatePointFont