EnumFontFamilies The EnumFontFamilies function enumerates the fonts in a specified font family that are available on a specified device. This function supersedes the EnumFonts function.
VB4-32,5,6
Declare Function EnumFontFamilies Lib "gdi32" Alias "EnumFontFamiliesA" (ByVal hdc As Long, ByVal lpszFamily As String, ByVal lpEnumFontFamProc As Long, ByVal lParam As Long) As Long |
VB.NET
System.Drawing.Text.FontCollection.Families |
Operating Systems Supported |
Requires Windows NT 3.1 or later; Requires Windows 95 or later |
- hdc
Identifies the device context.
- lpszFamily
Points to a null-terminated string that specifies the family name of the desired fonts. If lpszFamily is NULL, EnumFontFamilies randomly selects and enumerates one font of each available type family.
- lpEnumFontFamProc
Specifies the procedure-instance address of the application-defined callback function. For information about the callback function, see the EnumFontFamProc function.
- lParam
Points to application-supplied data. The data is passed to the callback function along with the font information. |
If the function succeeds, the return value is the last value returned by the callback function. Its meaning is implementation specific. |
|