◄CFont► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── BOOL CreateFontIndirect( LPLOGFONT lpLogFont ); Parameter Description <lpLogFont> Points to a LOGFONT structure that defines the characteristics of the logical font. Remarks Initializes a CFont object with the characteristics given in a LOGFONT structure pointed to by <lpLogFont>. The font can subsequently be selected as the current font for any device. This font has the characteristics specified in the ◄LOGFONT► structure. When the font is selected by using the ◄CDC::SelectObject► or ◄CMetaFileDC::SelectObject► functions, GDI's font mapper attempts to match the logical font with an existing physical font. If it fails to find an exact match for the logical font, it provides an alternative whose characteristics match as many of the requested characteristics as possible. Return Value TRUE if successful; otherwise FALSE. See Also ◄CFont::CreateFont►, ◄CDC::SelectObject►, ◄CDC::SelectObject►, ◄CMetaFileDC::SelectObject►, ◄::CreateFontIndirect► -♦-