◄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. -♦-