EnumDFontsCallback


WORD EnumDFontsCallback(LPLOGFONT lpLogFont, LPTEXTMETRICS lpTextMetrics,
    WORD wFontType, LPVOID lpClientData);

Enumerates the available fonts on a device.

lpLogFont

Address of an LOGFONT structure defining the logical attributes of a font. All sizes are in device units.

lpTextMetrics

Address of a TEXTMETRIC structure that contains the same values that would be returned by the GetTextMetrics (GDI.93) function. All sizes are in device units.

wFontType

Font type. Can be one of these values:

RASTER_FONTTYPE (1)

Font consists of raster bitmaps rather than vector strokes.

DEVICE_FONTTYPE (2)

Font is provided by the device rather than GDI.

ENGINE_FONTTYPE (4)

Font is provided by TrueType rather than GDI or device.


Bit 3 in the wFontType parameter is reserved; must be zero.

lpClientData

Address of the user-supplied data passed to EnumDFonts.

The callback function must return a nonzero value to continue to receive information about the fonts. If the callback function returns zero, EnumDFonts stops enumerating the fonts and returns to GDI.

See also EnumDFonts, LOGFONT, TEXTMETRIC