Public Function EnumFontFamExProc (ByVal lpelfe As Long, ByVal lpntme As Long, ByVal FontType As Long, ByVal lParam As Long) As Long
' application-specific code goes here
End Function
The EnumFontFamExProc callback function processes each font enumerated by EnumFontFamiliesEx. The function receives a large amount of information describing both the logical font attributes as well as its metrics. Information describing TrueType fonts is received by the function in a slightly different format than non-TrueType font information. This function does not necessarily have to be named EnumFontFamExProc -- that is simply the name given to it in discussions about the Windows API.
If the function returns 0, EnumFontFamiliesEx immediately stops enumerating fonts. If the function returns a non-zero value, EnumFontFamiliesEx continues enumerating fonts as long as another one can be found.
Like all callback functions, EnumFontFamExProc must be declared Public and be defined in a module.
Const DEVICE_FONTTYPE = &H2
Const RASTER_FONTTYPE = &H1
Const TRUETYPE_FONTTYPE = &H4
Go back to the Callback Function listing.
Go back to the Reference section index.
Last Modified: October 23, 1999
This page is copyright © 1999 Paul Kuliniewicz.
Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/e/enumfontfamexproc.html