Microsoft Windows CE 3.0  

EnumFontFamilies

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This function enumerates the fonts in a specified font family that are available on a specified device. This function supersedes the EnumFontsfunction.

int
EnumFontFamilies(
HDC
hdc
,
LPCTSTR
lpszFamily
, FONTENUMPROC
lpEnumFontFamProc
,
LPARAM
lParam
);

Parameters

hdc
[in] Handle to the device context (DC).
lpszFamily
[in] Long pointer to a null-terminated string that specifies the family name of the desired fonts. If lpszFamilyis NULL, EnumFontFamiliesrandomly selects and enumerates one font of each available type family.
lpEnumFontFamProc
[in] Long pointer to the procedure-instance address of the application-defined callback function. For information about the callback function, see EnumFontFamProc.
lParam
[in] Pointer to application-supplied data. The data is passed to the callback function along with the font information.

Return Values

The return value is the last value returned by the callback function. Its meaning is defined by the application.

Remarks

For each font having the typeface name specified by the lpszFamilyparameter, the EnumFontFamiliesfunction retrieves information about that font and passes it to the function pointed to by the lpEnumFontFamProcparameter. The application-defined callback function can process the font information as desired. Enumeration continues until there are no more fonts or the callback function returns zero.

Windows CE versions 2.0 and later support systems that use either TrueType or raster fonts but not both. The font type (raster or TrueType) is chosen at system design time, and cannot be changed by an application.

Windows CE versions 1.0 and 1.01 support only raster fonts.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Wingdi.h   Mgrast2.lib
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

EnumFontFamProc, EnumFonts