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.
class CFont
◄CGdiObject►                                  ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Description
 
  The CFont class encapsulates a Windows graphical design interface (GDI)
  font and provides member functions for manipulating the font. To use a
  CFont object, construct a CFont object and attach a Windows font to it
  with CreateFont or CreateFontIndirect, and then use the object's member
  functions to manipulate the font.
 
  Public Members
 
  Construction/Destruction
 
  ◄CFont►   Constructs a CFont object.
 
  Initialization
 
  ◄CreateFontIndirect►   Initializes a CFont object with the
                         characteristics given in a LOGFONT structure.
 
  ◄CreateFont►           Initializes a CFont with the specified
                         characteristics.
 
  Operations
 
  ◄FromHandle►   Returns a pointer to a CFont object when given a Windows
                 HFONT.
 
 
                                     -♦-