Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CFont::CreateFontIndirect
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
 
 
                                     -♦-