EnumFontFamExProc  1LJX0QX 

[Now Supported on Windows NT]

The EnumFontFamExProc function is an application-supplied callback function that processes the fonts enumerated by the EnumFontFamiliesEx.93X7I 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

   );

 

 

Parameters

lpelfe

Points to an ENUMLOGFONTEX10QN_SZ structure that contains information about the logical attributes of the font.

lpntme

Points to a structure that contains information about the physical attributes of a font. The function uses the NEWTEXTMETRICEX53RV.WF structure for TrueType fonts; and the TEXTMETRIC3QPXYYN structure for other fonts.

Windows 95: The NEWTEXTMETRICEX structure is not implemented. Use NEWTEXTMETRIC instead.

FontType

Specifies the type of the font. This parameter can be a combination of these values:

DEVICE_FONTTYPE
RASTER_FONTTYPE
TRUETYPE_FONTTYPE

lParam

Specifies the application-defined data passed by the EnumFontFamiliesEx function.

 

Return Values

The return value must be a nonzero value to continue enumeration; to stop enumeration, the return value must be zero.

Remarks

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.

See Also

EnumFontFamiliesEx, EnumFontFamProc, ENUMLOGFONTEX, NEWTEXTMETRICEX, TEXTMETRIC