Function:
This function lists fonts in the specified font family in the specified device environment.
Function prototype: int enumfontfamilies (HDC, lpctstr lpszfamily, fontenumproc lpenumfontfamproc, lparam );
Parameters:
HDC: Device environment handle.
Lpszfamily: pointer to a string ending with \ 0, which specifies the name of the expected font family. If
If lpszfamily is null, enumfontfamilies randomly selects and lists a font of each valid font family.
Lpenumfontproc: Specifies the process instance address of the callback function defined by the application. For details, see enumfontfamilies.
You can get more information about the callback function.
Lparam: a pointer to the data provided by the application. The data and font information are sent to the callback function together.
Note:
For each font whose name is specified by the parameter, enumfontfamilies obtains the font information and
Pass it to the function directed to by the penumfontfamproc parameter. The callback function defined by the application can process the following as expected.
Font information. If no valid font is available or the callback function returns zero, the listing is stopped.
Windows CE version 1.0 only supports grating fonts. Windows CE 2.0 supports earlier versions of TrueType or
One of the two systems. The font type (TrueType or grating) is selected during system design and cannot be
Use the program to modify.
Font functions-enumfontfamilies