Support for
GDI logical fonts is encapsulated in MFC in the
CFont
class. Creation of a font in MFC is a two-step process;
first, the CFont MFC object is created; next, an
initialization function is called to create the underlying
GDI logical font.
The
initialization functions include CreateFont,
CreateFontIndirect, CreatePointFont, and
CreatePointFontIndirect.
A pointer to
a LOGFONT structure can be obtained by calling the
GetLogFont member function. CFont objects can also be used
in place of HFONT handles in GDI function calls thanks to
the presents of the operator HFONT operator function.
MFC
Example
Note:
UCanCode Advance E-XD++
CAD Drawing and Printing Solution
Source Code Solution for C/C++, .NET V2024 is released!
Contact UCanCode Software
To buy the source code or learn more about with: