The EnumFontFamExProc function is an application-supplied callback function that processes the fonts enumerated by the EnumFontFamiliesEx function. The system calls this callback function once for each enumerated font.
int CALLBACK EnumFontFamExProc(
ENUMLOGFONTEX *lpelfe, |
// pointer to logical-font data |
NEWTEXTMETRICEX *lpntme, |
// pointer to physical-font data |
int FontType, |
// type of font |
LPARAM lParam |
// application-defined data |
); |
Windows 95: The NEWTEXTMETRICEX structure is not implemented.
Use NEWTEXTMETRIC instead.
DEVICE_FONTTYPE
RASTER_FONTTYPE
TRUETYPE_FONTTYPE
The return value must be a nonzero value to continue enumeration; to stop enumeration, the return value must be zero.
Unlike the EnumFontFamProc callback function, EnumFontFamExProc receives extended information about a font. The ENUMLOGFONTEX structure includes the localized name of the script (character set) and the NEWTEXTMETRICEX structure includes a font-coverage signature.
EnumFontFamiliesEx, EnumFontFamProc, ENUMLOGFONTEX, NEWTEXTMETRICEX, TEXTMETRIC