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 available on a specified device. This function is provided for compatibility with earlier versions of the Microsoft Platform SDK. Whenever possible, applications should use the EnumFontFamiliesfunction.
int EnumFonts( HDC hdc , LPCTSTR lpFaceName , FONTENUMPROC lpFontFunc , LPARAM lParam );
Parameters
Return Values
The return value is the last value returned by the callback function. Its meaning is defined by the application.
Remarks
Use EnumFontFamiliesExinstead of EnumFonts. The EnumFontFamiliesExfunction differs from the EnumFontsfunction in that it retrieves the style names associated with a TrueType font. With EnumFontFamiliesEx, you can retrieve information about font styles that cannot be enumerated using the EnumFontsfunction.
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
EnumFontFamilies, EnumFontsProc, GetDeviceCaps